LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-23-2009, 07:36 PM   #1
funyotros
LQ Newbie
 
Registered: May 2009
Location: Argentina
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
Umask a specific directory


Is there a way to umask only a specific directory?
I want that everyone who add a NEW file in this folder gets its file moded 700. But that adding it in any other folder still moded as default.

Excuse my poor English! I'm not a native speaker
Thanks in advance

Last edited by funyotros; 12-11-2009 at 08:35 PM.
 
Old 11-24-2009, 02:52 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,032

Rep: Reputation: 79
umask is inherited unless one is placed on the folder. So in short as long as there is no folder below the one being applied the umask, you should be fine. Also Even if you applied a umask, I believe linux will not auto set a file with execute permission. the best you can get would be rw-rw-rw-
 
Old 12-11-2009, 08:27 PM   #3
funyotros
LQ Newbie
 
Registered: May 2009
Location: Argentina
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
I've solved using access control lists. man setaclf

Quote:
setfacl -d -m g:riskyusers:r mypreciousdir
Set read only perms to any new file created in mypreciousdir by a member of the riskyusers group.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a specific umask for a folder nass Linux - Security 6 11-01-2011 05:44 PM
Umask on a directory? Rotwang Linux - General 1 07-05-2006 06:02 PM
Searching a specific directory for a specific extension? RoaCh Of DisCor Linux - Newbie 3 08-13-2005 04:28 PM
Mount specific umask on RH9.0? dirdej Red Hat 1 07-29-2004 05:18 PM
directory umask permissons Thetargos Linux - General 0 05-23-2004 07:24 PM


All times are GMT -5. The time now is 06:03 AM.

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