1752782 Members
6044 Online
108789 Solutions
New Discussion

how to set umask 027

 
SOLVED
Go to solution
Vincent_5
Super Advisor

how to set umask 027

Hi Guys,

      Can someone help, im trying to set a umask of 027 instead of 077 on my server. Can someone advice what are the parameter to be setup and path? After setting the umask how can  I check if is running on 027. 

 

Regards

Vincent 

nothing is better than to know more
1 REPLY 1
Steven Schweda
Honored Contributor
Solution

Re: how to set umask 027

> [...] im trying to set a umask of 027 instead of 077 on my server.

      uname -a

   Define "on my server".  A umask is a per-process parameter.  Are you
talking about the default umask for a particular user's shell(s)?  For
all users' shell(s)?

   For a shell, you can put a "umask" command in that shell's start-up
file(s), like "~/.cshrc", "~/.login", "~/.profile", "~/.bashrc", or
whatever, or, more generally, in "/etc/profile", or whatever a
particular shell uses.

> [...] After setting the umask how can  I check if is running on 027.

      man umask

      man <your_shell>

      man profile