Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

diff betw umask sets in /etc/profile and /etc/security/user

Status
Not open for further replies.

azrinakil

IS-IT--Management
Nov 13, 2002
2
MY
Dear Unix Gurus,
What is the difference if i set umask in /etc/profile and /etc/security/user? What will happened if i set diff umask in those two files?

regards
aixmen


 
The question I would ask is why is umask being set in the /etc/profile file?

The umask setting in /etc/security/user will define the initial umask setting for that user when he logs in. Should the umask command then be run, this will supercede the current setting.

By calling umask in /etc/profile , the users umask setting is being overrided by that in /etc/profile for any user using a shell which makes use of it.

I would suggest taking it out of /etc/profile altogether

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top