0

umask command in linux

how can I use the umask command to set permissions....????

Advanced commands Add a comment
cameron
asked Feb 07 2017

Answer

0

umask is used to determine the file permission for newly created files and directory. You can configure umask in /etc/bashrc or /etc/profile file for all users. By Default most Linux distribution set umask to 022 (or) 002.

To modify the umask values:

Open /etc/profile or ~/.bashrc file and modify umask values as per your wish.

Add a comment
mkarthikeyan
asked Feb 13 2017
edited Oct 05 2018
Post your Answer