Samba access by a template fragment

Hi

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’

[transmission]
comment = Transmission download folder
path = /var/lib/transmission/Downloads
        valid users =  administrator.dyndns.org admin admin@stephdl.dyndns.org


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

when I replace

valid users = administrator.dyndns.org admin admin@stephdl.dyndns.org

by

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 libwbclient.so.0.12-64 /usr/lib64/samba/wbclient/libwbclient.so.0.12
systemctl restart smb
2 Likes