
Ich habe eine Maschine von Debian Jessie auf Stretch aktualisiert, wodurch auch die Samba-Version von 4.2.14 auf 4.5.16 aktualisiert wurde. Ich kann eine Samba-Freigabe mounten, durchsuchen und lesen, aber die Berechtigung wird verweigert, wenn ich versuche, etwas zu schreiben.
Meine smb.conf sieht so aus und funktionierte unter Samba 4.2.14 einwandfrei:
[global]
workgroup = video
server string = %h server (Samba %v)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
panic action = /usr/share/samba/panic-action %d
obey pam restrictions = yes
invalid users = root
security = user
map to guest = Bad User
os level = 33
socket options = TCP_NODELAY
unix charset = UTF-8
strict allocate = yes
log level = 3
[backup]
comment = backup
path = /mnt/backup
writeable = yes
public = yes
force user = vdr
read only = no
guest ok = yes
In den Samba-Protokollen habe ich Folgendes gefunden:
[2020/07/15 09:55:06.621634, 3] ../source3/auth/auth.c:178(auth_check_ntlm_password)
check_ntlm_password: Checking password for unmapped user []\[vdr]@[] with the new password interface
[2020/07/15 09:55:06.621717, 3] ../source3/auth/auth.c:181(auth_check_ntlm_password)
check_ntlm_password: mapped user is: [VDR]\[vdr]@[]
[2020/07/15 09:55:06.621865, 3] ../source3/auth/check_samsec.c:400(check_sam_security)
check_sam_security: Couldn't find user 'vdr' in passdb.
[2020/07/15 09:55:06.621922, 2] ../source3/auth/auth.c:315(auth_check_ntlm_password)
check_ntlm_password: Authentication for user [vdr] -> [vdr] FAILED with error NT_STATUS_NO_SUCH_USER
[2020/07/15 09:55:06.622054, 3] ../source3/auth/auth_util.c:1611(do_map_to_guest_server_info)
No such user vdr [] - using guest account
Der Benutzer vdr existiert in /etc/samba/smbpasswd. Wo sollte ich sonst noch suchen?
Antwort1
Um meine eigene Frage zu beantworten:smbpasswd -a vdrhat mein Problem gelöst. Scheint, als wäre Samba 4.5 im Vergleich zu Samba 4.2 strenger geworden.