LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-04-2009, 05:53 PM   #1
hmendoza
LQ Newbie
 
Registered: Aug 2006
Posts: 10

Rep: Reputation: 0
Samba File permissions for multiple groups in the same general path


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 05:55 PM.
 
Old 11-06-2009, 03:43 AM   #2
rupertwh
Member
 
Registered: Sep 2006
Location: Munich, Germany
Distribution: Debian / Ubuntu
Posts: 297

Rep: Reputation: 49
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
 
  


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 On
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-23-2007 11:47 PM
Expanding on File Permissions with multiple groups boardo Linux - General 1 01-24-2006 02:14 PM
File Permissions, X and Groups mikemrh9 Linux - Software 3 09-08-2005 09:10 PM
File with multiple groups? belorion Linux - General 1 09-01-2005 05:45 PM
multiple groups permissions steve007 Linux - Newbie 2 07-01-2005 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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