[Samba] smbclient oddness
Rowland penny
rpenny at samba.org
Wed May 20 09:36:29 UTC 2020
On 20/05/2020 04:16, Grant Petersen via samba wrote:
>>>> grant.petersen at gnabregib ~]$ cat /etc/samba/smb.conf
>>>> [global]
>>>> workgroup = genericproducts
>>>> server string = Genericproducts samba server
>>>> log file = /var/log/samba/%m.log
>>>> max log size = 2000
>>>> log level = 1
>>>> server role = standalone
>>>> security = user
>>>> guest ok = yes
>>>> guest account = xxxxxxxxx
>>>> create mask = 0664
>>>> directory mask = 0775
>>>> force create mode = 0664
>>>> force directory mode = 0775
>>>> client min protocol = smb2_02
>>>> server min protocol = smb2_02
Can I point out a few things ;-)
1) if you are going to sanitise things, sanitise them everywhere.
2) you are using 'guest ok = yes' in all your shares, but it will not
work because you have 'guest ok = yes' in [global] instead of 'map to
guest = bad user'
3) does your 'guest user' exist on the server
4) You don't actually need a password to run smbclient in the way you
are doing, 'smbclient -L gnabregib -N' will get you the same info. If it
doesn't, you have a dns problem.
Rowland
More information about the samba
mailing list