Archive for June 29th, 2009

Jun
29
2009

Linux: Umask file, directory permission settings

What is umask?
The command umask is used to set the file, directory permissions.

In linux, you can set the file or directory permission for all users by editing /etc/profile (or in /etc/bashrc) file or for specific users by editing their respective ~/.bashrc file.

For files, the default permission settings are 0666 (execute permission is disabled) and for directories it is 0777

To produce symbolic output, you can use umask with -s option
$ umask -s

(more…)

  • Share/Save/Bookmark