
나는 Debian Jessie에서 Stretch로 시스템을 업데이트했고 Samba 버전도 4.2.14에서 4.5.16으로 업그레이드했습니다. Samba 공유를 마운트하고 찾아보고 읽을 수 있지만 무언가를 쓰려고 하면 권한이 거부됩니다.
내 smb.conf는 다음과 같으며 Samba 4.2.14에서 잘 작동했습니다.
[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
Samba 로그에서 다음을 발견했습니다.
[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
사용자 vdr은 /etc/samba/smbpasswd에 있습니다. 또 어디를 봐야 합니까?
답변1
내 질문에 대답하려면 다음을 수행하십시오.smbpasswd -a vdr내 문제를 해결했습니다. Samba 4.5는 Samba 4.2에 비해 더 엄격해진 것 같습니다.