삼바 상태를 확인하면 다음 오류가 표시됩니다.
service smb status
Mar 03 11:17:37 fujitsu.localdomain smbd[203323]: Unable to open new log file '/var/log/samba/log.smbd': Permission denied
Mar 03 11:17:37 fujitsu.localdomain smbd[203323]: [2021/03/03 11:17:37.691484, 0] ../lib/util/debug.c:1055(reopen_logs_internal)
Mar 03 11:17:37 fujitsu.localdomain smbd[203323]: Unable to open new log file '/var/log/samba/log.smbd': Permission denied
Mar 03 11:17:37 fujitsu.localdomain smbd[203323]: [2021/03/03 11:17:37.691532, 0] ../lib/util/debug.c:1055(reopen_logs_internal)
Mar 03 11:17:37 fujitsu.localdomain smbd[203323]: Unable to open new log file '/var/log/samba/log.smbd': Permission denied
Mar 03 11:17:37 fujitsu.localdomain smbd[203323]: [2021/03/03 11:17:37.728845, 0] ../lib/util/become_daemon.c:138(daemon_ready)
Mar 03 11:17:37 fujitsu.localdomain smbd[203323]: daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections
Mar 03 11:17:37 fujitsu.localdomain systemd[1]: Started Samba SMB Daemon.
Mar 03 11:17:37 fujitsu.localdomain smbd[203323]: [2021/03/03 11:17:37.732849, 0] ../lib/util/debug.c:1055(reopen_logs_internal)
Mar 03 11:17:37 fujitsu.localdomain smbd[203323]: Unable to open new log file '/var/log/samba/log.smbd': Permission denied
그렇지 않으면 삼바 상태가 활성화되지만 이 오류는 정말 혼란스럽습니다. 이 폴더의 권한을 변경해 보았지만 도움이 되지 않았습니다.
답변1
권한을 어떻게 업데이트하려고 하는지 잘 모르겠지만 이것이 나에게 도움이 되었습니다.
sudo chmod 770 /var/log/samba