chmod
Change the mode (permissions) of a file
Usage: chmod perms list-of-files
Standard Input: Not used
Standard Output: Not used
Can be done only by the file owner or root
Perms can be specified in two ways:
Symbolic: [ugoa][+-=][rwxst]
Absolute or numeric:
perm = read(4) + write(2) + execute(1) perms = owner-perm * 100 + group-perm * 10 + other-perm + setuid(4000)+setgid(2000)+sticky(1000)
SEE ALSO
For more information, see page 389 |
Get Practical UNIX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.