![]() | Register | FAQ | Members | Social Groups | User Map | Calendar | Search | Today's Posts | Mark Forums Read |
*nix
*nix forum sponsored by |
| | | LinkBack | Thread Tools | Search Thread | Language |
| Sponsored Links |
| | #1 |
![]() Join Date: Jun 2005 Location: Fylde, Lancs, UK.
Posts: 9,839
Thanks: 41
Thanked 217 Times in 198 Posts
Blog Entries: 1 Rep Power: 64 | The filesystem has EA/ACL support (it's jfs). The following samba global settings are enabled: Code: # Enable ACLs inherit permissions = yes inherit owner = yes map acl inherit = yes nt acl support = yes ea support = yes store dos attributes = yes Code: [staff$] comment = Staff Share read only = no path = /home/staff guest ok = no hide unreadable = yes admin users = @"domain admins", administrator hide files = /*quota.*/ veto files = /*.bat/*.cmd/*.com/*.exe/*.vbs/*.msi/*.pif/*.reg/ vfs objects = default_quota all_staff has read access /home/staff (and is group owner) and r/w to /home/staff/* (and is group owner) <username> has r/w to /home/staff/<username> and owns the directory (for quotas) root,administrator and domain admins have full rights to /home/staff I concocted the following script to set the permissions: Code: cd /home/staff
#*nix permissions
chown administrator:all_staff .
chmod 740 .
ls -l | grep "^d" | awk -F" " '{print "chown -v -R "tolower($9)" "$9}' | sh
ls -l | grep "^d" | awk -F" " '{print "chgrp -v -R all_staff "$9}' | sh
ls -l | grep "^d" | awk -F" " '{print "chmod -v -R 660 "$8}' | sh
#Extended ACLs
setfacl -R -b .
setfacl -R -m u:administrator:rwx .
setfacl -R -m g:"domain admins":rwx .
setfacl -R -m u:root:rwx .
|
| |
| | #2 |
![]() | Because Windows uses the x bit for directory traversal, don't you need to chmod to 670? I know you mentioned something in the chat about it breaking Samba security mind. Are you not able to stick full control for an admin on the folder and then alter the permissions from a Windows machine? |
| |
| | #3 | ||
![]() Join Date: Jun 2005 Location: Fylde, Lancs, UK.
Posts: 9,839
Thanks: 41
Thanked 217 Times in 198 Posts
Blog Entries: 1 Rep Power: 64 | Quote:
Quote:
| ||
| |
| | #4 |
![]() Join Date: Jan 2006
Posts: 3,322
Thanks: 46
Thanked 137 Times in 113 Posts
Rep Power: 36 | Code: ls -l | grep "^d" | awk -F" " '{print "chmod -v -R 660 "$8}' | sh
|
| |
| | #6 |
![]() Join Date: Jan 2006
Posts: 3,322
Thanks: 46
Thanked 137 Times in 113 Posts
Rep Power: 36 | I see, I figured the nt mapping was done to an acl, rather than the unix rwx bits. |
| |
| | #8 |
![]() Join Date: Aug 2008 Location: Gosport
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 | The problem with not giving them the exec bit is that under UNIX systems permission to read the contents of a directory is granted by the exec bit for some reason, so no exec permission = can't read dir. |
| |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a trust between a Samba DC and a Windows Server 20008 DC | ronanian | Networks | 5 | 12-06-2008 04:14 PM |
| joomla acl | alonebfg | EduGeek Joomla 1.0 Package | 1 | 21-03-2008 05:19 PM |
| Mapping windows shares %username% equivalent | atfnet | Mac | 5 | 07-09-2007 11:22 AM |
| Mapping a windows network drive at login | rob101 | Mac | 4 | 16-01-2007 09:36 AM |
| mapping a drive to web folder in windows xp | russdev | Windows | 1 | 03-10-2005 08:31 AM |
| Tags |
| acls, samba |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
|
|









