Figure 4.10 umask
| Mask bit | Meaning |
|---|---|
| 0400 | user-read |
| 0200 | user-write |
| 0100 | user-execute |
| 0040 | group-read |
| 0020 | group-write |
| 0010 | group-execute |
| 0004 | other-read |
| 0002 | other-write |
| 0001 | other-execute |
$ umask first print the current file mode creation mask 002 $ umask -S print the symbolic form u=rwx,g=rwx,o=rx $ umask 027 change the file mode creation mask $ umask -S print the symbolic form u=rwx,g=rx,o=
//=================================================//
| mode | Description |
|---|---|
| S_ISUID | set-user-ID on execution |
| S_ISGID | set-group-ID on execution |
| S_ISVTX | saved-text (sticky bit) |
| S_IRWXU | read, write, and execute by user (owner) |
| read by user (owner) |
| write by user (owner) |
| execute by user (owner) |
| S_IRWXG | read, write, and execute by group |
| read by group |
| write by group |
| execute by group |
| S_IRWXO | read, write, and execute by other (world) |
| read by other (world) |
| write by other (world) |
| execute by other (world) |
S_IRWXO的全称是什么呢?哦,是这样啊 set-group-ID or a set-user-ID ,一看就明白了
S: set
I: ID
RWX: read,write,execute
O: other
设定other这个项的file permission ID 是read , write, execute。
2200

被折叠的 条评论
为什么被折叠?



