Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 07-17-2007, 10:56 PM   #1
Registered: Aug 2004
Location: Sweden
Distribution: Fedora Core, OpenBSD and FreeBSD
Posts: 37

Rep: Reputation: 15
Question Samba ACL issues


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:
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

If I set my samba config to:
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 10:57 PM.
Old 07-18-2007, 12:00 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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.


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

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