samba共享服务器启动失败

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
ormosia
帖子: 6
注册时间: 2016-06-09 8:27
系统: ubuntu16.04

samba共享服务器启动失败

#1

帖子 ormosia » 2016-07-26 21:10

启动就是失败
root@ormosia-pc:/home/ormosia# /etc/init.d/smbd restart
[....] Restarting smbd (via systemctl): smbd.serviceJob for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details.
failed!
root@ormosia-pc:/home/ormosia# /etc/init.d/nmbd restart
[....] Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed because the control process exited with error code. See "systemctl status nmbd.service" and "journalctl -xe" for details.
failed!

下面是smb.cong配置文件
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
netbios name = ormosia
security = share
[share]
comment = Public stuff
path = /home/ormosia/samba/
public = yes
writeable = yes
browseable = yes
guest ok = yes


查看状态就这样了
root@ormosia-pc:/home/ormosia# /etc/init.d/smbd status
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since 二 2016-07-26 20:53:34 CST; 29s ago
Docs: man:systemd-sysv-generator(8)
Process: 2727 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

7月 26 20:53:34 ormosia-pc systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
7月 26 20:53:34 ormosia-pc smbd[2727]: Starting SMB/CIFS daemon: smbd failed!
7月 26 20:53:34 ormosia-pc systemd[1]: smbd.service: Control process exited, code=exited status=1
7月 26 20:53:34 ormosia-pc systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
7月 26 20:53:34 ormosia-pc systemd[1]: smbd.service: Unit entered failed state.
7月 26 20:53:34 ormosia-pc systemd[1]: smbd.service: Failed with result 'exit-code'.
root@ormosia-pc:/home/ormosia# /etc/init.d/smbd start
[....] Starting smbd (via systemctl): smbd.serviceJob for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details.
failed!
root@ormosia-pc:/home/ormosia# /etc/init.d/smbd status
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since 二 2016-07-26 20:57:37 CST; 2s ago
Docs: man:systemd-sysv-generator(8)
Process: 2824 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

7月 26 20:57:37 ormosia-pc systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
7月 26 20:57:37 ormosia-pc smbd[2824]: Starting SMB/CIFS daemon: smbd failed!
7月 26 20:57:37 ormosia-pc systemd[1]: smbd.service: Control process exited, code=exited status=1
7月 26 20:57:37 ormosia-pc systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
7月 26 20:57:37 ormosia-pc systemd[1]: smbd.service: Unit entered failed state.
7月 26 20:57:37 ormosia-pc systemd[1]: smbd.service: Failed with result 'exit-code'.
root@ormosia-pc:/home/ormosia# /etc/init.d/nmbd status
● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
Loaded: loaded (/etc/init.d/nmbd; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since 二 2016-07-26 20:53:12 CST; 4min 41s ago
Docs: man:systemd-sysv-generator(8)
Process: 2623 ExecStart=/etc/init.d/nmbd start (code=exited, status=1/FAILURE)

7月 26 20:53:12 ormosia-pc systemd[1]: Starting LSB: start Samba NetBIOS nameserver (nmbd)...
7月 26 20:53:12 ormosia-pc nmbd[2623]: Starting NetBIOS name server: nmbd failed!
7月 26 20:53:12 ormosia-pc systemd[1]: nmbd.service: Control process exited, code=exited status=1
7月 26 20:53:12 ormosia-pc systemd[1]: Failed to start LSB: start Samba NetBIOS nameserver (nmbd).
7月 26 20:53:12 ormosia-pc systemd[1]: nmbd.service: Unit entered failed state.
7月 26 20:53:12 ormosia-pc systemd[1]: nmbd.service: Failed with result 'exit-code'.
7月 26 20:53:18 ormosia-pc systemd[1]: Stopped LSB: start Samba NetBIOS nameserver (nmbd).


这个改怎么解决啊
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: samba共享服务器启动失败

#2

帖子 vickycq » 2016-07-26 21:25

1. 执行以下命令

代码: 全选

sudo apt install pastebinit
2. 执行以下命令后,立刻执行 3.

代码: 全选

sudo systemctl stop smbd nmbd
sudo systemctl start smbd nmbd
3. 执行以下命令将结果全部复制贴上来

代码: 全选

ls -al /etc/samba/
sudo cat /var/log/samba/log.smbd | pastebinit
sudo cat /etc/samba/smb.conf | pastebinit
上次由 vickycq 在 2016-07-26 22:01,总共编辑 1 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: samba共享服务器启动失败

#3

帖子 poloshiao » 2016-07-26 21:53

这个改怎么解决啊
請提供
Samba Server 作業系統 與 版本
Samba Clent 作業系統 與 版本
ormosia
帖子: 6
注册时间: 2016-06-09 8:27
系统: ubuntu16.04

Re: samba共享服务器启动失败

#4

帖子 ormosia » 2016-07-27 8:18

1.
ormosia@ormosia-pc:~$ ls -al /etc/samba/
总用量 52
drwxr-xr-x 3 root root 4096 7月 26 20:24 .
drwxr-xr-x 135 root root 12288 7月 27 08:13 ..
-rw-r--r-- 1 root root 8 5月 18 23:29 gdbcommands
-rw-r--r-- 1 root root 271 7月 26 20:24 smb.conf
-rw-r--r-- 1 root root 9701 7月 26 15:30 smd.conf.back
-rw-r--r-- 1 ormosia ormosia 9701 7月 26 14:53 smd.conf.old
drwxr-xr-x 2 root root 4096 4月 13 06:31 tls

2.
ormosia@ormosia-pc:~$ sudo cat /var/log/samba/log.smbd | pastebinit
http://paste.debian.net/785496/

3.
ormosia@ormosia-pc:~$ sudo cat /etc/samba/smb.conf | pastebinit
http://paste.debian.net/785497/
上次由 ormosia 在 2016-07-27 8:33,总共编辑 2 次。
ormosia
帖子: 6
注册时间: 2016-06-09 8:27
系统: ubuntu16.04

Re: samba共享服务器启动失败

#5

帖子 ormosia » 2016-07-27 8:19

vickycq 写了:1. 执行以下命令

代码: 全选

sudo apt install pastebinit
2. 执行以下命令后,立刻执行 3.

代码: 全选

sudo systemctl stop smbd nmbd
sudo systemctl start smbd nmbd
3. 执行以下命令将结果全部复制贴上来

代码: 全选

ls -al /etc/samba/
sudo cat /var/log/samba/log.smbd | pastebinit
sudo cat /etc/samba/smb.conf | pastebinit
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: samba共享服务器启动失败

#6

帖子 vickycq » 2016-07-27 9:06

ormosia 写了:3.ormosia@ormosia-pc:~$ sudo cat /etc/samba/smb.conf | pastebinit
http://paste.debian.net/785497/
poloshiao 写了:請提供Samba Server 作業系統 與 版本
1 - 猜测 操作系统为 Debian 8 或以上,Samba Server 版本为 4.2 或以上
2 - Samba 4 不支持 security = share,可将其去掉或改为 security = user
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
ormosia
帖子: 6
注册时间: 2016-06-09 8:27
系统: ubuntu16.04

Re: samba共享服务器启动失败

#7

帖子 ormosia » 2016-07-27 10:04

vickycq 写了:
ormosia 写了:3.ormosia@ormosia-pc:~$ sudo cat /etc/samba/smb.conf | pastebinit
http://paste.debian.net/785497/
poloshiao 写了:請提供Samba Server 作業系統 與 版本
1 - 猜测 操作系统为 Debian 8 或以上,Samba Server 版本为 4.2 或以上
2 - Samba 4 不支持 security = share,可将其去掉或改为 security = user

对了,谢谢
负刀入梦里
帖子: 1
注册时间: 2019-03-25 11:50
系统: ubuntu 16.04

Re: samba共享服务器启动失败

#8

帖子 负刀入梦里 » 2019-03-25 11:52

vickycq 写了: 2016-07-27 9:06
ormosia 写了:3.ormosia@ormosia-pc:~$ sudo cat /etc/samba/smb.conf | pastebinit
http://paste.debian.net/785497/
poloshiao 写了:請提供Samba Server 作業系統 與 版本
1 - 猜测 操作系统为 Debian 8 或以上,Samba Server 版本为 4.2 或以上
2 - Samba 4 不支持 security = share,可将其去掉或改为 security = user
在一次服务器宕机后,sambd 无法启动,通过service smbd status 查看状态时,出现如下信息
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2019-03-25 11:28:45 CST; 19min ago
Docs: man:systemd-sysv-generator(8)
Process: 4900 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

Mar 25 11:28:44 controller systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
Mar 25 11:28:45 controller smbd[4900]: * Starting SMB/CIFS daemon smbd
Mar 25 11:28:45 controller smbd[4900]: ...fail!
Mar 25 11:28:45 controller systemd[1]: smbd.service: Control process exited, code=exited s
Mar 25 11:28:45 controller systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (s
Mar 25 11:28:45 controller systemd[1]: smbd.service: Unit entered failed state.
Mar 25 11:28:45 controller systemd[1]: smbd.service: Failed with result 'exit-code'.

请问大佬遇到过吗
回复