LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 11-04-2009, 06:53 PM   #1
hmendoza
LQ Newbie
 
Registered: Aug 2006
Posts: 10
Thanked: 0
Samba File permissions for multiple groups in the same general path


[Log in to get rid of this advertisement]
I'm using my Linux (SLES 10) server as a File Server at this point. I need to set File Permissions to nested folders differently to different groups. For example:
\home\shared\engineering\* should be read only for groupA
\home\shared\engineering\admin should be read & write for groupB Plus read only for groupA
\home\shared\engineering\autocad should be read & write for groupC Plus read only for groupA

I've been using Webmin and Putty to set permissions but Putty only allows me the Default Group, it won't allow me to set several groups on the same directory.

Webmin seems to allow me to add multiple groups (Webmin --> Others --> File Manager --> Info & ACL tab will provide extended abilities) but when I add multiple groups, they don't seem to take effect? I'm wondering if my setup at the 'Share' level or at the hierarchy of my folder structure (unix based) needs to be set specifically?

Am I asking Linux/Samba to do something it's not meant to do?

Last edited by hmendoza; 11-04-2009 at 06:55 PM..
windows_xp_2003 hmendoza is offline     Reply With Quote
Old 11-06-2009, 04:43 AM   #2
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 246
Thanked: 3
Your file system has to support ACLs if you want to use them (and you have to enable them).

But it might be simpler to try and live with Linux permissions. You might be forced to introduce additional directory levels, though.

E.g:
Code:
chown .groupA /home/shared/engineering
chmod 2750 /home/shared/engineering

chown .groupB /home/shared/engineering/admin
chmod 2775 /home/shared/engineering/admin

chown .groupC /home/shared/engineering/autocad
chmod 2775 /home/shared/engineering/autocad
windows_xp_2003 rupertwh is offline     Reply With Quote
Thanked by:

Reply

Bookmarks


Thread Tools

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
Problems with multiple groups in samba+AD environment jonas.sheiakh Linux - Networking 3 01-24-2007 12:47 AM
Expanding on File Permissions with multiple groups boardo Linux - General 1 01-24-2006 03:14 PM
File Permissions, X and Groups mikemrh9 Linux - Software 3 09-08-2005 10:10 PM
File with multiple groups? belorion Linux - General 1 09-01-2005 06:45 PM
multiple groups permissions steve007 Linux - Newbie 2 07-01-2005 01:24 PM


All times are GMT -5. The time now is 03:38 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration