Samba access by a template fragment


I would allow some users by a template fragment in Samba and what I did is no more workable, probably due to the ‘security = ADS’

comment = Transmission download folder
path = /var/lib/transmission/Downloads
        valid users = admin

force user = transmission
force group = transmission
read only = no
browseable = yes
writeable = yes
create mode = 0644
directory mask = 0755

when I replace

valid users = admin


guest ok = yes

I can login in samba, and create folders and files, so I don’t have a problem from bad permissions in my file system

My users are created in the user panel with nethserver-dc installed
I’m really not an expert in the samba4 turn, I hope that you could give some hints @davidep @giacomo

Well in fact I cannot even login in a shared folder created with ns7.2…where are the log file, I cannot find the error message ???


If you agree, I’d see the template fragment after trying to apply the workaround reported here:

Ok the tricks resolved my problem, probably it should be the default behaviour

alternatives --set /usr/lib64/samba/wbclient/
systemctl restart smb