LinuxQuestions.org
Help answer threads with 0 replies.
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 12-30-2011, 07:44 PM   #1
mccartjd
Member
 
Registered: Apr 2008
Posts: 108

Rep: Reputation: 15
Smile Simple Problem Looking for Simple Solution


I have about 50 users collaberating there work in one central folder. The folder permissions are 770 and when users post there files other users can not modify any of the files created by other users. I have tried umask 007 but that only works for the current user as he/she is logged in, but when they logoff and login again there umask settings do not hold for new files. All the users are a member of Primary Group (Jedi or GUID 502). Is there a simple command I can type so when users place files in the folder (Empire) that the files inherit the permissions of the folder?

Here are the facts:
Operating System RHEL 5
All users member of the Primary Group Jedi or GUID 502
Path=/data/Empire
Objective: All users of group Jedi have read and write to all files (existing and future additions) located in folder Jedi. Users not required to do anything special and files automatically inherit permissions from folder.
A million thanks, Johnny Mac
 
Old 12-30-2011, 09:02 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You can slap the setgid bit on the directory, which will make all newly inherited files inherit the group ownership of the parent directory, but I know of no way to make them inherit the permission bits. I'd suggest adding the umask 007 command to your /etc/profile, so all users get that umask automatically on login. However, this is not foolproof (users can reset their umask). You might want to just write a little shell script that sets all the file permissions correctly, and then run it from cron say every 5 minutes. It's not exactly elegant, but it will do what you want.
 
  


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
need simple solution of who; who|wc -l aggrishabh Linux - Newbie 1 01-06-2011 09:34 AM
A simple DNS solution mangueJOE Linux - Networking 10 04-09-2006 01:45 AM
simple autofs solution friendly_guy Slackware 10 07-13-2005 07:40 PM
My Simple Security Solution For Linux bjdea1 Linux - Security 10 04-02-2004 07:39 PM
I need a reliable, simple backup solution kkempter Linux - Software 1 02-05-2003 01:31 PM


All times are GMT -5. The time now is 10:36 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration