Samba shares and file and folder permissions
i have 3 shares on my samba.
i have users - user, manager and boss projects is RW to everyone reference is R to everyone RW to manager and boss Proposals is RW only to boss, no access to others However when boss logs in and creates a directory in projects share, the directory can only be renamed bu users and manager, and directory contents are read only for users and managers, even deletion / rename is denied. How can i make sure that when ever boss creates a directory in projects, it retains base folder permissions and is writable to user this is my samba file... i am using red hat 6.1 with samba 3.5.6 (i think) Need some serious help ... and thanks in advance ----------------------------------------- [global] # Role Of Server ---------- User based Security----------File Server. username map = /etc/samba/smbusers workgroup = OFFICE netbios name = fileserver1 server string = Authorised access only null passwords = no smb passwd file = /etc/samba/smbpasswd guest only = no # The option below will restrict samba access from following network only hosts allow = 192.168.1. log file = /var/log/samba/%m.log max log size = 50 printcap name = CUPS show add printer wizard = No add user script = /usr/sbin/useradd -m '%u' delete user script = /usr/sbin/userdel -r '%u' add group script = /usr/sbin/groupadd '%g' delete group script = /usr/sbin/groupdel '%g' add user to group script = /usr/sbin/usermod -G '%g' '%u' passwd chat = *New*Password* %n\n*Re-enter*new*password* %n\n *Password*changed* printing = CUPS [Projects] comment = Public Share Files. Please keep your data safe. path = /data/projects writeable = yes valid users = user manager boss [Reference] comment = This share is for user's Reference. path = /data/projects_ref writeable = yes readonly = yes guest ok = yes write list = manager boss [Proposals] comment = Restricted Access path = /Proposals writeable = yes readonly = yes guest ok = yes write list = boss |
Take a look at smb.conf parameter "create mask" to add correct permissions when files and directories are created.
|
All times are GMT -5. The time now is 03:32 AM. |