CHOWN(1) (Essential Utilities) CHOWN(1)
NAME
chown, chgrp - change owner or group
SYNOPSIS
chown owner file ...
chown owner directory ...
chgrp group file ...
chgrp group directory ...
DESCRIPTION
The chown command changes the owner of the files or
directories to owner. The owner may be either a decimal
user ID or a login name found in the password file.
The chgrp command changes the group ID of the files or
directories to group. The group may be either a decimal
group ID or a group name found in the group file.
If either command is invoked by other than the super-user,
the set-user-ID and set-group-ID bits of the file mode
(04000 and 02000 respectively) are cleared.
Only the owner of a file (or the super-user) may change the
owner or group of that file. If _POSIX_CHOWN_RESTRICTED is
in effect (system configuration option, off by default),
only the super-user may change the owner of a file. A user
invoking chgrp must belong to the specified group and be the
owner of the file or be the super-user.
If file is a symbolic link, the link itself is changed, not
the file to which it points.
FILES
/etc/passwd
/etc/group
NOTES
Page 1 May 1989
CHOWN(1) (Essential Utilities) CHOWN(1)
In a Remote File Sharing environment, you may not have the
permissions that the output of the ls -l command leads you
to believe. For more information, see the "Mapping Remote
Users" section of Chapter 10 of the System Administrator's
Guide.
SEE ALSO
chmod(1).
chown(2), group(4), passwd(4) in the Programmer's Reference
Manual.
Page 2 May 1989