LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-25-2008, 10:14 AM   #1
dedeco
LQ Newbie
 
Registered: Aug 2005
Distribution: Debian
Posts: 7

Rep: Reputation: 10
Question File permissions on shared folders: a problem for chmod, chown


Hello,

The scenario for my problem is: I have a shared folder of projects, with subfolders, one for each project. Each of these subfolders have a different group (GID) on my system, so I assign users to each project.

I want that all users belonging to a project (included on the project group) have all access rights to all files on the project's folder. All user not belonging to a project should be denied ALL access rights to the corresponding folder.

Using "chmod g+s projectfolder/" is enough to chance the group as each person creates files for the project.

But this won't change the "other" access rights, wich is my problem now. Do I depend on each user's umask? I want to force them to use umask 007 on these project files (and not necessarily on others), outside the projects folders.

Thank you.

Ps: I have read the chmod and chown manual pages, and the page http://www.comptechdoc.org/os/linux/..._ugfilesp.html. (not saying that I have got it all )
 
Old 07-25-2008, 10:15 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You can't enforce a umask on users with default tools and have them be productive (eg. you could use a restricted shell, but that will most likely restrict users too much for your needs).

Make the main project directory
- owned by you, group you.
- perms 755
Make each project/projX directory
- owned by you, group projX.
- perms 770

Now, regardless of permissions on files in project/projX, the no execute permission on project/projX prevents Others from using that component in any path (they can't traverse past project).
 
1 members found this post helpful.
  


Reply

Tags
chmod, chown, file, folder, permission, permissions, share, shared


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
really screwy permissions error involving chmod, chgrp, chown Ryzol Linux - Software 1 03-26-2008 11:36 PM
chmod chown permissions not working operation not allowed UMG:Chicken_Soüp Slackware 1 11-06-2007 12:15 AM
chown and/or chmod to restore permissions on files moved from another drive by root. Shay Linux - General 4 04-12-2007 08:47 AM
chmod/chown and folders :) chibi Linux - Newbie 2 04-28-2005 04:56 PM
Graphically setup user permissions (frontend to chmod and chown) sfonvill Linux - Security 2 08-27-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:16 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
Open Source Consulting | Domain Registration