Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-25-2007, 11:07 AM   #1
LQ Newbie
Registered: May 2007
Posts: 6

Rep: Reputation: 0
Question 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.
Old 06-25-2007, 11:14 AM   #2
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
umask and default file permission cool9292 Linux - Newbie 2 03-10-2006 08:03 PM
Umask and Linux Default Permissions Sandoomaphone Linux - Security 9 08-23-2004 05:48 PM
Where to set default file permissions (umask)? tredegar Linux - Newbie 14 01-27-2004 06:10 PM
default file rights with umask MartinMiller Linux - General 6 10-22-2003 11:04 AM
umask and default file create permissions Rgamboa Linux - Newbie 5 05-20-2003 12:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration