chown
From Mac Guides
Revision as of 19:41, 10 June 2008; Eraserhead (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
chown is a Terminal program for changing file ownerships, in a similar manner found in Finder's Get Info window in the Ownership & Permission section. chown is equivalent to the "Owner" field, and in it's extended form, the Group field. (For completeness, the Access fields are equivalent to chmod)
chown is often executed via sudo.
[edit]
Examples
To change ownership of a file to a user named "mark"
chown mark somefile.txt
To change ownership and group of a file to a user named "mark" in a group "geniuses"
chown mark:geniuses somefile.txt
[edit]
Man Page Excerpt
The chown utility changes the user ID and/or the group ID of the specified files. Symbolic links named by arguments are silently left unchanged unless -h is used.

