LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-17-2007, 09:56 PM   #1
garnser
Member
 
Registered: Aug 2004
Location: Sweden
Distribution: Fedora Core, OpenBSD and FreeBSD
Posts: 37

Rep: Reputation: 15
Question Samba ACL issues


Hi.

I'm currently setting up an office with shares for each user. Obviously I want the IT team to have full access to all persons share when connecting using windows.

What I've succeeded with so far:
  • Hook Samba into LDAP
  • Create a share (obviously)
  • Restricted the ACL access so on IT and the actual user can create and edit content in the users folder

The problems I'm having:
  • When I as an admin/user creates a file in a users directory the user/admin cannot read or edit the file

My config is as follows:
[backup]
comment = backup
path = /share/username1
valid users = username1, username2, username2
public = no
writable = yes
printable = no
create mask = 0770
browsable = yes

My ACL looks as follows:
# file: username1
# owner: username1
# group: it
user::rwx
user:username1:rwx
user:username2:rwx
group::rwx
mask::rwx
other::---

If I set my samba config to:
[backup]
comment = backup
path = /share/username1
valid users = username1, username2, username2
force group = it
force create mode = 0770
force directory mode = 0770
public = no
writable = yes
printable = no
create mask = 0770
browsable = yes


Everyone gets full access to everything

Please advice.

Last edited by garnser; 07-17-2007 at 09:57 PM.
 
Old 07-17-2007, 11:00 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You could use "write list = %u @it" where "it" is a group of IT users. You might want to have the share defined with the path containing a %u or %U user variable. There are other variables you can use. Using them you don't have to have a separate share defined for each user.
 
  


Reply


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
Getting ACL support working in SAMBA arobinson74 Slackware 4 05-02-2005 01:18 PM
NT ACL Samba Share ateh Linux - General 4 10-18-2004 12:43 PM
Samba + Acl theDrix Linux - General 0 10-18-2004 12:29 PM
Samba 3 rc1 + ACL collen Linux - Networking 3 09-10-2003 11:19 AM
Compile samba with acl-support grubjo Linux - Software 7 07-29-2002 10:44 AM


All times are GMT -5. The time now is 09:29 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration