chmod — Change the Permissions Mode of a File
Synopsis
/usr/bin/chmod [-fR] absolute-mode file... /usr/bin/chmod [-fR] symbolic-mode-list file...
Description
Use the chmod (change mode) command to change the mode of a file. The mode of a file specifies its permissions and other attributes. You can specify the mode in one of two ways: absolute or symbolic.
Absolute Mode
You specify an absolute mode in octal numbers by using the following syntax:
chmod nnnn file...
where n is a number from 0 to 7. You construct an absolute mode from the OR of any of the following modes:
4000 | Set user ID on execution. |
20#0 | Set group ID on execution if # is 7, 5, 3, or 1. Enable mandatory locking if # is 6, 4, 2, or 0. For directories, create files with ... |
Get Solaris™ 7 Reference 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.