[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with UMASK and file/directory permissions on sarge



Ah ok, I'm starting to narrow down the problem now. When I login as the
user, everything works correctly, but when I am root, the umask is
still wrong and as such the write bit is not set on any files created
in that directory. I looked in root's ~/.bashrc file and I see that the
umask is set statically in there.

Sorry for the confusion on my part, i can see why I thought it wasn't
working correctly now.

My question now is how many places is/can umask be set, and where
SHOULD it be changed? I can see this quickly becoming a nightmare
trying to keep straight.

So far I have seen umask in:
~/.bash_profile
~/.bashrc
/etc/login.defs
/etc/profile
/etc/skel/.bash_profile (I know this is used for a templete for new
users)

The ~/.bash_profile file references the /etc/login.defs file to make a
change to the umask. When I change the umask there is seemed to have no
effect. What is this file used for and when should it be edited? Same
for /etc/profile? There has to be a "right" and a "wrong" way to do
this, I just want to make sure I am learning the right way.

Thanks again for your help
-Ryan Koski



Reply to: