Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

Rep: Reputation: 0
Question Shared folder for multiple users


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?

Old 07-18-2008, 11:40 PM   #2
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, 11:44 PM   #3
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.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
New shared folder to serveral users Jose Rivas Fedora 2 07-04-2007 10:20 AM
FTP Folder accessible by multiple users question JohnnyAvocado Linux - Networking 1 01-13-2007 08:39 AM
Allowing multiple users with shared userid to have different filesystem permissions pcardout Linux - Security 11 05-11-2006 06: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 07:50 AM
One shared folder for multiple ftp users -- vsftpd rover Linux - Networking 0 06-17-2004 07:07 AM > Forums > Linux Forums > Linux - General

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

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