File permissions and default umask
I'm working on a Redhat 7.2 system where users in the same group
are having trouble accessing each others files in a common area.
The problem seems to be that the default umask has the permissions
of newly created files come up 'rw-r--r--'. I was able to fix it
temporarily with 'umask 002' which gave permissions of 'rw-rw-r--',
but it goes back to the original on reboot.
Do I need to set the default umask on fstab or some other file? And if I do,
what line do I use? Just 'umask 002' for the / directory or something else?
You'll find that it goes back to the original not just on reboot, but every time you log in.
Put the umask command in each user's .profile or .bash_profile, whichever you're using.
Hope this helps.
|All times are GMT -5. The time now is 01:36 PM.|