【求助】samba服务启动失败
Tofloor
poster avatar
137******47
deepin
2018-08-31 01:13
Author
本帖最后由 holdbelief 于 2018-8-30 17:37 编辑







我的文件夹共享始终不正常,是这个原因吗?@aida

[2018/08/30 17:09:59.866665,  0] ../source4/smbd/server.c:466(binary_smbd_main)
  samba version 4.8.2-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2018
[2018/08/30 17:10:00.005995,  0] ../source4/smbd/server.c:618(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2018/08/30 17:10:00.006109,  0] ../lib/util/become_daemon.c:124(exit_daemon)
  exit_daemon: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
[2018/08/30 17:11:57.760500,  0] ../source4/smbd/server.c:466(binary_smbd_main)
  samba version 4.8.2-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2018
[2018/08/30 17:11:57.792704,  0] ../source4/smbd/server.c:618(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2018/08/30 17:11:57.793262,  0] ../lib/util/become_daemon.c:124(exit_daemon)
  exit_daemon: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22



Reply Favorite View the author
All Replies
avatar
WENWEN
deepin
2018-08-31 02:22
#1
Reply View the author
avatar
kingskill
deepin
2018-08-31 03:16
#2
daemon安装了吗?你看看这个:https://blog.csdn.net/dddxxxx/article/details/53994748
Reply View the author
avatar
137******47
deepin
2018-08-31 19:17
#3
https://bbs.deepin.org/post/168202
daemon安装了吗?你看看这个:https://blog.csdn.net/dddxxxx/article/details/53994748

root@laputa-PC:~# cd /var/log/samba/
root@laputa-PC:/var/log/samba# ls
cores  log.127.0.0.1          log.192.168.1.106  log.192.168.18.42        log.%m          log.smbd
log.   log.192.168.1.102  log.192.168.1.108  log.laputa-pc        log.nmbd
root@laputa-PC:/var/log/samba# cat ./log.%m
[2018/08/30 17:09:59.866665,  0] ../source4/smbd/server.c:466(binary_smbd_main)
  samba version 4.8.2-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2018
[2018/08/30 17:10:00.005995,  0] ../source4/smbd/server.c:618(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2018/08/30 17:10:00.006109,  0] ../lib/util/become_daemon.c:124(exit_daemon)
  exit_daemon: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
[2018/08/30 17:11:57.760500,  0] ../source4/smbd/server.c:466(binary_smbd_main)
  samba version 4.8.2-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2018
[2018/08/30 17:11:57.792704,  0] ../source4/smbd/server.c:618(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2018/08/30 17:11:57.793262,  0] ../lib/util/become_daemon.c:124(exit_daemon)
  exit_daemon: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
root@laputa-PC:/var/log/samba# cat ./log.%m
[2018/08/30 17:09:59.866665,  0] ../source4/smbd/server.c:466(binary_smbd_main)
  samba version 4.8.2-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2018
[2018/08/30 17:10:00.005995,  0] ../source4/smbd/server.c:618(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2018/08/30 17:10:00.006109,  0] ../lib/util/become_daemon.c:124(exit_daemon)
  exit_daemon: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
[2018/08/30 17:11:57.760500,  0] ../source4/smbd/server.c:466(binary_smbd_main)
  samba version 4.8.2-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2018
[2018/08/30 17:11:57.792704,  0] ../source4/smbd/server.c:618(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2018/08/30 17:11:57.793262,  0] ../lib/util/become_daemon.c:124(exit_daemon)
  exit_daemon: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
root@laputa-PC:/var/log/samba#
我的错误信息如上
Reply View the author
avatar
130******52
deepin
2018-08-31 19:24
#4
应该是你smbd的服务没启动吧.我升级过后也启动不了的.重装N遍都启动失败..重装samba的时候还报错了.
安装过程中报错的话,你删除掉./var/lib/dpkg/info这个目录.然后再在手工创建这个目录.在安装...然后还是启动不了.你用sudo smbd -FS 命令启动看下,代表在前台启动,还能看到日志的.我这边提示的是/var/lib/samba/private/这个目录的权限不对.应该是0700的权限.,你手工把这个目录的权限改成0700,然后就能启动成功了..我这边是这样操作搞定了的
Reply View the author
avatar
137******47
deepin
2018-08-31 20:16
#5
https://bbs.deepin.org/post/168202
应该是你smbd的服务没启动吧.我升级过后也启动不了的.重装N遍都启动失败..重装samba的时候还报错了.
安装过 ...

启动了啊

Reply View the author
avatar
rdlg
deepin
2018-08-31 20:35
#6
smbclient -L /// 看看输出什么
Reply View the author
avatar
137******47
deepin
2018-08-31 21:48
#7
https://bbs.deepin.org/post/168202
smbclient -L /// 看看输出什么

使用smbclient -L /// 看看输出什么 这种方式是能看到的,但是在文件管理器的windows网络里面看不到
Reply View the author