1830895 Members
2033 Online
110017 Solutions
New Discussion

umask

 
SOLVED
Go to solution
sameer_4
Advisor

umask


Hi,
Can anybody suggest me how to impoese a default unamsk of all the nis user to 122 IE 6444 PERMISSIONS.As all my machines are nis clients .

thnks
3 REPLIES 3
Deepak Extross
Honored Contributor
Solution

Re: umask

Each user should have the umask set to the permission bits that are to be masked.

If you want the files to be created with 644 permissions, set umask to 022 by making the following entry in the startup file:
umask 022

YOu can put this into the /.profile file, but remember that the user can override this by setting umask in his own $HOME/.profile.
Deepak Extross
Honored Contributor

Re: umask

Each user should have the umask set to the permission bits that are to be masked.

If you want the files to be created with 644 permissions, set umask to 022 by making the following entry in the startup file:
umask 022

YOu can put this into the /.profile file, but remember that the user can override this by setting umask in his own $HOME/.profile.
Michael Tully
Honored Contributor

Re: umask

The 'umask' setting should be done in /etc/profile

umask 122
Anyone for a Mutiny ?