With umask you see the current mask, with umask -S you see it understandably. The default in Ubuntu is umask 022, which means that files will be -rw-r--r-- by default. With umask 026 you can prevent files from being readable and directories being accessible by "other"s (meaning anyone) by default (-rw-r-----).
You can also use the much easier symbols like with chmod, e.g. umask u=rwx.
No comments:
Post a Comment
I appreciate comments. Feel free to write anything you wish. Selected comments and questions will be published.