Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permissions on subdirectories

Status
Not open for further replies.

160473

IS-IT--Management
Apr 16, 2003
55
FI
I have a share on an samba PDC that is restricted by acl:s and "inherit permissions" and "hide unreadable" is set to yes in smb.conf.
Acl list of share:

# file: data/share1
# owner: USER-A
# group: A
user::rwx
group::rwx
group:A:rwx
group:B:r-x
mask::rwx
other::---

The share contains several subdirectories:

SUBDIR-A: all users of group A has rwx rigths and group B --- rights.
SUBDIR-B: all users of group A and B has rwx rights.
SUBDIC-C: all users of group A has RWX and group B r-x rights.

Is there a way of automaticly denying access to users of group B to new files and dirs in root of the share?
Group B is automaticly getting the same rights as the root share to all new objects created...
If I don't use "inherit permissions = yes" then all new files created in subdirs are not readable by group B.

Any suggestions?
 
Have you tried to set the default policies for group B for the root of the share (setfacl -m d:g:B:rx /data/share1)?

[]z
MadMax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top