1832757 Members
2966 Online
110045 Solutions
New Discussion

umask

 
SOLVED
Go to solution
Joyce Suganthy
Advisor

umask

Hi

Can i change the umask current setting, 000 to 027 or 077 for user root and all the other users?

Thanks
2 REPLIES 2
Michael Tully
Honored Contributor
Solution

Re: umask

Hi,

I would suggest that you have a system global setting of 022. This can be placed in the /etc/profile
This will take effect from the next user who logs in.

# Setting umask
umask 022

If a user needs a particular umask setting he/she can set this at the shell level by simply typing it in.

$ umask 022

Regards
Michael
Anyone for a Mutiny ?
Ramkumar Devanathan
Honored Contributor

Re: umask

hi,

Remember that the execute permission on directories works differently from that on files.

for directories it allows listing, when execute permission is provided. Inadvertently when you set a umask of 027, you may deny others permission to list a directory. It might be very important for some users to get a listing of the directory.

So, as suggested use 022 - that is the default i guess???

- ramd.
HPE Software Rocks!