I am trying to configure Samba shares on a headless FreeBSD 10.2 box and having a tremendous amount of difficulty getting them working the way I want.
I have two shares right now, Veeam (for my Veeam Endpoint Backup jobs on Windows clients) and sladd, a user share. Veeam seems to work fine as best I can tell, but getting the user share working so that it is accessible, browseable, readable and writable without the need to manually type a password, but not accessible to any other user, has me stumped.
I've tried changing security from "user" to "share" and back again, but that did not change anything.
I've tried as many combinations as I can think of for valid users, read/write users, just-plain-"user", chown(8), chmod(1), etc. If there's a "Goldilocks combination" of permissions, I haven't hit on it yet.
"sladd" is already a user on the BSD side. I have run
One of two things happens: The user can connect to the share but it is not writable, or the user is prompted for a username and password by Windows Explorer and no matter what they type, nothing works.
My smb4.conf is below.
I am pulling my hair out over this - it is extremely frustrating and makes me want to just quit. Please help. Thank you in advance.
I have two shares right now, Veeam (for my Veeam Endpoint Backup jobs on Windows clients) and sladd, a user share. Veeam seems to work fine as best I can tell, but getting the user share working so that it is accessible, browseable, readable and writable without the need to manually type a password, but not accessible to any other user, has me stumped.
I've tried changing security from "user" to "share" and back again, but that did not change anything.
I've tried as many combinations as I can think of for valid users, read/write users, just-plain-"user", chown(8), chmod(1), etc. If there's a "Goldilocks combination" of permissions, I haven't hit on it yet.
"sladd" is already a user on the BSD side. I have run
smbpasswd -a sladd
and made sure that the UNIX account password, Samba account password, and Windows client account password are all the same.One of two things happens: The user can connect to the share but it is not writable, or the user is prompted for a username and password by Windows Explorer and no matter what they type, nothing works.
My smb4.conf is below.
I am pulling my hair out over this - it is extremely frustrating and makes me want to just quit. Please help. Thank you in advance.
Code:
[global]
os level = 20
inherit acls = no
unix extensions = no
nt acl support = yes
netbios aliases = Piata
security = user
case sensitive = yes
netbios name = Piata
encrypt passwords = yes
workgroup = WORKGROUP
map acl inherit = yes
[homedirs]
path = /nas
comment = Home Directories
vfs objects = zfsacl
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = yes
available = yes
browseable = yes
read only = no
public = no
guest ok = no
writable = yes
[Backup]
writeable = yes
write list = veeam,@backup
path = /nas/Veeam/BackupTarget
user = veeam,@backup
comment = Directory for Veeam Endpoint Backup on Windows
valid users = veeam,@backup
[sladd]
writeable = yes
browseable = yes
valid users = sladd
path = /nas/sladd
write list = sladd