1833057 Members
2631 Online
110049 Solutions
New Discussion

Re: umask

 
Scott_20
Occasional Advisor

umask

where do I change the default umask to 022? thanks.
scott
I'm ok
4 REPLIES 4
John Poff
Honored Contributor

Re: umask

Hi,

For just your account, do it in your .profile file. For everybody on the system, do it in /etc/profile.

JP
John Poff
Honored Contributor

Re: umask

And if you want to change it for ftp users also, add the '-u 022' switch to the entry for ftpd in /etc/inetd.conf, but it probably is a bad security practice.

JP
Ray Brewer
Valued Contributor

Re: umask

If you want to set it for everyone change it or put it in /etc/profile. Keep in mind a user can still set their umask in their own .profile that will override setting it in /etc/profile.

Ray
Darrell Allen
Honored Contributor

Re: umask

Hi Scott,

If you have csh users, edit /etc/csh.login to make it globally effective. For individual users, edit either ~/.cshrc or ~/.login.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)