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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

root and /etc/profile umask question 1

Status
Not open for further replies.

gallows

Technical User
Jun 12, 2004
223
US
Does the root account read the /etc/profile when logging in?
They want me to change the umask to 077 in /etc/profile and I don't want to mess with root's umask.

tks,
Gallows
 
It does. You'll need to put some code around it such as:

Code:
if [ "$LOGNAME" != root ]
then
    umask 077
fi

Annihilannic.
 
Thanks!!
Appreciate the example instead of just a "yes". :))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top