LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-18-2009, 06:51 AM   #1
Shnooter
Member
 
Registered: Sep 2005
Posts: 30

Rep: Reputation: 15
Folder Sharing


Hi,

I've put 3 users in a user group and gave them create and delete permissions on the folder. The problem that I have is if user A creates a file then for user B and C they can't write to it yet they can read and delete.

Any ideas on how I allow multiple users to have read, write, execute permissions in one folder? Additionally I need these permissions to automatically apply to any sub-directories that are create.

Thanks

Last edited by Shnooter; 04-18-2009 at 06:54 AM.
 
Old 04-18-2009, 11:04 AM   #2
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
you may be looking for something like umask: ~$man umask
 
Old 04-18-2009, 01:23 PM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
d|rwx|r-x|r-- the 2nd set of "r-x" denote group permission if goup doesnt have write permission, the users who are in the same group they cant write anything inside the directory expect owner.
Refer the following link for further information for permission change
http://catcode.com/teachmod/

Last edited by kirukan; 04-18-2009 at 01:24 PM.
 
Old 04-18-2009, 02:31 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Set the generic file acl for the directory. It will be inherited by files you create in it. I'm not certain how you would have rw- permissions inherited for files & rwx for directories however.

Remember to set the non-default acl permissions as well.

example:
setfacl -m g:users:rwx directory
setfacl -m d:g:users:rwx directory

The filesystem needs to support acls, so this needs to be a native linux filesystem. If you are accessing a samba share, and the directory being shared is a Linux filesystem, then use the cifs filesystem when mounting and not smbfs. Cifs supports facls.

Last edited by jschiwal; 04-18-2009 at 02:34 PM.
 
  


Reply



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
Sharing a Folder carlosinfl Linux - Networking 1 06-05-2007 04:43 PM
Folder sharing - xbox cornish Linux - Networking 0 06-21-2006 02:04 PM
sharing folder kumary Linux - Networking 3 12-05-2005 06:42 AM
folder sharing problem jnev Linux - Networking 5 06-23-2005 10:41 PM
Sharing folder at linux RockmanExe Linux - Networking 2 03-09-2004 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 PM.

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