I am in the process of setting up a samba file serve which I got to work pretty well the only issue that I am now stuck with is the permissions:
The set up that I am trying to achieve is to allow one user "master_user" to have access to everything mean while another user "sectech" has r-w permissions for only certain folders. otherwise the user can only read the files and folders.
The file system is ext3
I set the chmod on a file to have wr for the owner and only r for the world and group and I put sectech on the same group as master_user.
Thank you in advanced
p.s here is smb.conf
[Datashare] comment = Protection and SCADA path = /mnt/data force user = master_user writeable = yes read only = no guest ok = no
the file dir is /mnt/data/Protection/Master
$ getfacl Master #file: Master #owner: master_user #group: sectech user::rwx user:master_user:rwx group::r-- group:sectech:r-- mask::rwx other::r--
/mnt/..../Protection$ ls -l //to show the chmod of the folder
drwxr--r--+ 3 master_user sectech 4096 Mar 26 18:59 Master
/mtn/.../Protection/Master$ ls -l //to show permissions of test file tes.txt
-rwxr--r-- 1 master_user sectech 39 Mar 23 20:36 tes.txt
fstab line of the partition:
UUID="UUID of Partiton" /mnt/data ext3 defaults,acl 0 2