LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 07-18-2008, 09:48 PM   #1
droidix
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Question Shared folder for multiple users


Hello,

I was wondering if there is a way to set up a directory and give a group of users read/write permission to said directory. On the surface this is simple, i.e. setting up a group and setgid of that group on the directory.

But, here is the catch, I want to keep the directory read/write for all users no matter what other users do. For example, bob creates a sub-directory named secret-project and removes the group write permission from secret-project, none of the other users will be able to create files inside of it. So basically, is there a way to prevent users from changing the permission/group-ownership on the files/folders they create?

Thanks!
 
Old 07-18-2008, 10:40 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Set the 'sticky' bit on the parent directory, that's a start. I can't think of any means of preventing a user from tinkering with permissions, unless somehow the owner of the file is always 'root' (or a dummy user). The only other option I can think of is to run a script every hour or so to ensure that permissions are set the way you want.
 
Old 07-18-2008, 10:44 PM   #3
droidix
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
I was hoping there was an easier way, but alas, I have started on a script that uses the inotifywait to detect new files in the directory tree and set their permissions accordingly. It will also change the owner, like you suggested, to a dummy owner, which will prevent any further permission/group changes.
 
  


Reply

Tags
access, groups, permissions


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
New shared folder to serveral users Jose Rivas Fedora 2 07-04-2007 09:20 AM
FTP Folder accessible by multiple users question JohnnyAvocado Linux - Networking 1 01-13-2007 07:39 AM
Allowing multiple users with shared userid to have different filesystem permissions pcardout Linux - Security 11 05-11-2006 05:24 PM
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 06:50 AM
One shared folder for multiple ftp users -- vsftpd rover Linux - Networking 0 06-17-2004 06:07 AM


All times are GMT -5. The time now is 01:15 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 Google+: linuxquestions
Open Source Consulting | Domain Registration