c
chmod(1) | chmod(1) |
chmod a+x ®le
Assign read and execute permission to everybody, and set the
chmod a=rx,u+s ®le
Assign read and write permission to the ®le owner, and read permission to everybody else:
chmod u=rw,go=r ®le
or the obsolescent form:
chmod 644 ®le
Traverse a directory subtree making all regular ®les readable by user and group only, and all executables and directories executable (searchable) by everyone:
chmod
If the current value of umask is 020 (umask
chmod +w mytest
sets the permissions to 646 (uo=rw,g=r), displayed by ls
If the current value of umask is 020 (umask
chmod
sets the permissions to 464 (uo=r,g=rw), displayed by ls
DEPENDENCIES
The
AUTHOR
chmod was developed by AT&T and HP.
SEE ALSO
chacl(1), ls(1), umask(1), chmod(2), acl(5), aclv(5).
STANDARDS CONFORMANCE
chmod: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
Section 1−86 | − 3 − |