for bit in {0..7} ; do umask 000$bit; touch 000$bit ; echo on umask set to `umask` `umask -S` `stat -c "%A %n" 000$bit`; done | column -t
on umask set to 0000 u=rwx,g=rwx,o=rwx -rw-rw-rw- 0000
on umask set to 0001 u=rwx,g=rwx,o=rw -rw-rw-rw- 0001
on umask set to 0002 u=rwx,g=rwx,o=rx -rw-rw-r-- 0002
on umask set to 0003 u=rwx,g=rwx,o=r -rw-rw-r-- 0003
on umask set to 0004 u=rwx,g=rwx,o=wx -rw-rw--w- 0004
on umask set to 0005 u=rwx,g=rwx,o=w -rw-rw--w- 0005
on umask set to 0006 u=rwx,g=rwx,o=x -rw-rw---- 0006
on umask set to 0007 u=rwx,g=rwx,o= -rw-rw---- 0007
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!