next up previous
Next: Example Up: The Unix Security Model Previous: Changing file permissions

Changing file ownership

The owner and group to which a file belongs can only be changed by the super-user. The commands are

chown username file ...

to change the owner of the files in the list to username and

chgrp groupname file ...

to change the group to which the files belong to groupname. Most versions of Unix allow these to be combined by using the chown command and providing both the user name and group name separated by a colon:

chown username:groupname file ...



Robert Moniot
2000-09-13