Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

       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

/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
share|improve this question
You might look at using ACLs for more granular control of user access privileges. See this Wiki article and look at Eiciel which is a GUI control for managing them available in the Ubuntu Software Center. –  douggro Mar 22 '14 at 15:46
@douggro Hi Thanks for the info I tried what you said now but doesn't seem to help. Although the ACL control in theory is exactly what I am looking for.I suspect the problem might be: something to do with its being a samba serve that over rights all the rules/permissions or I am missing something else. –  Mit Mar 23 '14 at 18:40
Can you edit your post to show the directory permissions of the Samba share? –  douggro Mar 24 '14 at 0:07
Apologize for the belated reply; you will see the permissions of the folder. –  Mit Mar 26 '14 at 16:54
Actually, we'd need to see the output of ls-l /mnt/data/Protection/Master for the UNIX permissions. –  douggro Mar 29 '14 at 14:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.