[Newbies] smbd服务启动不了,请高手指点
Tofloor
poster avatar
zhangqf
deepin
2023-06-30 06:19
Author

在超级用户下执行systemctl status smbd.service

× smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-06-29 21:45:18 CST; 25min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 74746 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Process: 74750 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 74750 (code=exited, status=1/FAILURE)
Status: "daemon failed to start: Samba cannot init registry"
Error: 13 (权限不够)

6月 29 21:45:16 zqf-Home systemd[1]: Starting Samba SMB Daemon...
6月 29 21:45:18 zqf-Home smbd[74750]: Copyright Andrew Tridgell and the Samba Team ----------Unable to open new log file '/var/log/samba/log.smbd': 没有那个文件或目录
6月 29 21:45:18 zqf-Home smbd[74750]: [2023/06/29 21:45:18.259114, 0] ../lib/util/debug.c:1063(reopen_logs_internal)
6月 29 21:45:18 zqf-Home smbd[74750]: Unable to open new log file '/var/log/samba/log.smbd': 没有那个文件或目录
6月 29 21:45:18 zqf-Home smbd[74750]: [2023/06/29 21:45:18.259168, 0] ../lib/util/debug.c:1063(reopen_logs_internal)
6月 29 21:45:18 zqf-Home smbd[74750]: Unable to open new log file '/var/log/samba/log.smbd': 没有那个文件或目录
6月 29 21:45:18 zqf-Home systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
6月 29 21:45:18 zqf-Home systemd[1]: smbd.service: Failed with result 'exit-code'.
6月 29 21:45:18 zqf-Home systemd[1]: Failed to start Samba SMB Daemon.

提示权限不够?还要什么权限?我手动建立了/var/log/samba/目录,赋予其777权限,还是不行。

我记得以前的Deepin 20.6版本时运行service smbd start就可以启动,现在到20.9却不行了。

Reply Favorite View the author
All Replies
坚持一个中国原则
deepin
2023-06-30 06:31
#1

/usr/sbin/smbd

加 sudo 试试

Reply View the author
阿尼樱奈奈
Moderator
2023-06-30 16:26
#2
It has been deleted!
zhangqf
deepin
2023-07-01 05:06
#3
坚持一个中国原则

/usr/sbin/smbd

加 sudo 试试

还是启动不了smb服务
image.png

Reply View the author