Monday 28 August 2017

How to set Daemon umask in RHEL/Centos



When a user creates a file or a directory under Linux, there is a set of default permission which is applied on those files and directory. These predefined permissions are assigned as per the value of default umask.


To check the value of the "umask", run the following command: 

[root@linuxcnf ~]# grep umask /etc/init.d/functions
# Make sure umask is sane
umask 022

You will get the output either "022" or "027". 


The settings file /etc/init.d/functions contains settings which apply to all processes started at boot time.

No comments:

Post a Comment