LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File permissions and default umask (http://www.linuxquestions.org/questions/linux-newbie-8/file-permissions-and-default-umask-564360/)

bnbguy 06-25-2007 10:07 AM

File permissions and default umask
 
Hey, guys.

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?

Thanks, all.

wjevans_7d1@yahoo.co 06-25-2007 10:14 AM

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 08:31 PM.