Hi Swerdna,
I see this thread is open ended, and as it seems to fit my needs, I’d like to continue it (waste not want not).
I am using OpenSuse 13.2 installed entirely to a 160GB drive (SDA) (/ = BtrFS, /home = XFS, Swap = Swap).
I have put a second 2TB drive (SDB) into this machine and wish to share parts of it’s contents.
SDB is formatted to NTFS and it’s entry in /etc/fstab is;
UUID=0D2E3B186B54C6F1 /mnt/archive/ ntfs-3g quiet,defaults,locale=en_US.utf8,uid=1000,gid=100,umask=0002 0 0
My samba config file (/etc/samba/smb.conf) is;
[global]
workgroup = WORKGROUP
# netbios name = SAMBA_2
passdb backend = tdbsam
name resolve order = bcast host lmhosts wins
server string = ""
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
use client driver = yes
map to guest = Bad User
local master = yes
os level = 65
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0700
browseable = No
guest OK = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[Backup]
path = /mnt/archive/Backup
inherit acls = Yes
guest ok = No
valid users = @users
create mode = 0660
directory mode = 0770
# profile acls = Yes
# use sendfile = Yes
# write list = backup, iso_admin, michael
The folder is shared and visible to clients, but when accessing smb://linux-samba/Backup/ (even at the server), group access is read only, so logging in as the samba user “michael” (uid=1000) is required to gain write access; however the folder locally /mnt/archive/backup has rw enabled for group, and the other samba users are members of the users group (gid=100);
michael@linux-samba:~> ls -ld /mnt/archive/Backup
drwxrwxr-x 1 michael users 0 Sep 14 17:09 /mnt/archive/Backup
How can I achieve rw access to this share for members of the users group, over samba. I will have other shares that allow rw access to just michael and iso_admin, but I have yet to set these up.
Thanks in advance for your help with this problem.
Michael