LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 06-25-2007, 10:07 AM   #1
bnbguy
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, 10:14 AM   #2
wjevans_7d1@yahoo.co
Member
 
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.
 
  


Reply


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 07:03 PM
Umask and Linux Default Permissions Sandoomaphone Linux - Security 9 08-23-2004 04:48 PM
Where to set default file permissions (umask)? tredegar Linux - Newbie 14 01-27-2004 05:10 PM
default file rights with umask MartinMiller Linux - General 6 10-22-2003 10:04 AM
umask and default file create permissions Rgamboa Linux - Newbie 5 05-20-2003 11:03 AM


All times are GMT -5. The time now is 09:58 PM.

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