1754419 Members
2672 Online
108813 Solutions
New Discussion

UMASK

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

UMASK

if a user change the umask of file or directories then this umask (file or directories permission ) is applicable of root. or it is default umask for the root if any user change umask.
1 REPLY 1
James R. Ferguson
Acclaimed Contributor
Solution

Re: UMASK

Hi:

You can set a default 'umask' for everyone (assuming that they use the POSIX shell -- 'usr/bin/sh') by setting a umask in '/etc/profile'. This can be less restrictive than is applicatble for 'root'. For instance, in '/etc/profile' you could set 'umask 022'.

Then, in the '.profile' for root (or any user) you could/should set a more restrictive mask -- at least 022 or preferably 027'.

This said, any user profile can establish a more or a less restrictive umask they choose during login when their profile is processed or for specific needs in any script they run.

Regards!

...JRF...