Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 08-28-2013, 02:14 AM   #1
Registered: May 2013
Location: Faisalabad, Pakistan
Posts: 72

Rep: Reputation: Disabled
Permission on specific Directory / File to specific group

Hi all , group = G User =u Directory = D
now i have scenario , G1(u1,u2) , G2 , G3 , u3 , u4
G1 can read /write /execute D , but G2 and G3 cant Write but can read and execute D. u3 and u4 can't write but can execute and read , any solution
Old 08-28-2013, 04:38 AM   #2
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,248

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
If you have that kind of complication in permissions, then you colud use "acl". Then these rules can be easly invoked
chmod a= D # You can clear standard permissions if needed
setfacl -m   g:G1:rwx,g:G2:w,g:G3:w,u:u3:rx,u:u4:rx   D
You need to use filesystem which support acl, for example "ext" and mount it that it use it, for example
mount -o remount,acl /

Last edited by eSelix; 08-28-2013 at 04:40 AM.
1 members found this post helpful.


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
[SOLVED] Looking for best way to calculate group of file by specific date mosiac Linux - General 3 07-15-2013 02:21 PM
Filename completion in a specific directory for a specific command using tcsh Leo Simon Linux - Software 3 12-29-2012 11:44 AM
can i give directory permission to a group and not specific user? SamuraiCoder Linux - Newbie 5 05-26-2010 05:23 PM
How to make a specific command(s) work for specific users or group only naren_0101bits Linux - General 3 08-28-2005 06:22 PM
Searching a specific directory for a specific extension? RoaCh Of DisCor Linux - Newbie 3 08-13-2005 04:28 PM

All times are GMT -5. The time now is 03:22 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