LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2004, 09:31 AM   #1
dskny
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE8.0+, RedHat
Posts: 25

Rep: Reputation: 15
new file creation permissions


when I set the umask for a directory, say to 000, it makes the change, but when I restart the machine...it changes the umask back to 022 for the directory. How would I go about making keep the umask 000 that I changed it to?

thanks
 
Old 03-03-2004, 09:52 AM   #2
crypticsoda
LQ Newbie
 
Registered: Feb 2003
Location: Stuttgart, Germany
Distribution: Fedora
Posts: 26

Rep: Reputation: 15
do I understand you right, that you wan't to change the settings only for specific directory? Then use the chmod command.

If you want to set the umask globally for every user add "umask=000" (without the quotes) in /etc/profile, or if you want it only for a specific user in the .profile or .bash_profile in the home directories of the user.
 
Old 03-03-2004, 10:18 AM   #3
dskny
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE8.0+, RedHat
Posts: 25

Original Poster
Rep: Reputation: 15
thanks for the reply

right, but if I chmod a directory to 777 and create a new file in it, the file's permissions are 644

I need any new file that is created in just that directory to be at least 666
 
Old 03-03-2004, 10:32 AM   #4
crypticsoda
LQ Newbie
 
Registered: Feb 2003
Location: Stuttgart, Germany
Distribution: Fedora
Posts: 26

Rep: Reputation: 15
you can't achieve that with umask (as it is user based), you have to use ACL's for that.
 
  


Reply



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
Zone File Creation mr_dizzle Linux - Newbie 4 10-20-2005 08:08 PM
Schedule on file creation TheLostPropet Linux - Newbie 2 04-09-2005 05:20 PM
Device file creation.... xtrem Linux - General 0 10-24-2004 12:18 AM
RPM Spec file creation: %file section question davidas Linux - Newbie 0 03-16-2004 10:36 PM
file creation in C ratheesh Programming 1 01-08-2004 05:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration