My problem is non-root users can't write to the share when it's mounted. But they can when it's not mounted. The group changes from users to root when I mount the share. And I can't figure out how force the group to remain as 'users' when the share mounts.The idea is create a Linux and Samba user account, add the account to the group users. Anyone in the group users can read and write to the share.I've been googling this all day and I've tried modifying, fstab, and smb.conffiles. I've read about Samba share permissions, and Linux file system permissions. I've used the id username command to ensure the user account is in the users group, etc.  Would someone throw me a bone and give me a hint on what I should be looking at to solve this problem?  I really don't understand why the group changes when the share is mounted.NOTE: I'm using this as a guide.http://www.howtoforge.com/ubuntu-12.10-samba-standalone-server-with-tdbsam-backendHere are the permissions when it's mounted:root@xxxxx:/etc/samba# ls -al /home/shares/exporttotal 1drwxr-xr-x 1 root root     0 Jun 17  2014 .drwxr-xr-x 3 root users 4096 Jun  9 12:24 ..-rwxr-xr-x 1 root root     0 Jun 17 16:15 test1.txtroot@xxxxx:/etc/samba#Here they are when it's not mounted.root@xxxxx:/etc/samba# ls -al /home/shares/exporttotal 3drwxrwxrwx 2 root users 4096 Jun 17 16:17 .drwxr-xr-x 3 root users 4096 Jun  9 12:24 ..-rwxrwxrwx 1 root users    0 Jun  9 16:34 test5555.txtSnip from fstab.//xxxserv/xxxxx_export /home/shares/export cifs nocase,username=xxxxx_export,password=xxxxxxx,iocharset=utf8,sec=ntlm 0 0Snip from smb.conf[export] comment = export path = /home/shares/export valid users = @users force group = users create mask = 0660 directory mask = 0771 writable = yes
Samba non-root user can't write to share
debian;samba