前几天晚上,我的断路器跳闸了,导致办公室停电。重启后,我发现启动被挂起了,它说“files/public/”无法挂载,所以我可以跳过或进入手动模式。当我最终跳过它时,我发现 SMB/CIFS 失败了
* Starting SMB/CIFS File and Active Directory Server [fail]
Now I went into log.smbd after restarting and saw some more stuff that was unsuccessful
mbd version 4.1.6-Ubuntu started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/09/22 17:26:21.668122, 0] ../source3/smbd/server.c:1278(main)
standard input is not a socket, assuming -D option
[2014/09/22 17:26:22.230303, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Bad file descriptor
[2014/09/22 17:26:22.230616, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2014/09/22 17:38:22.659314, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Bad file descriptor
[2014/09/22 17:38:22.659587, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2014/09/22 17:51:23.440297, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Bad file descriptor
[2014/09/22 17:51:23.440554, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2014/09/22 18:04:24.220946, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Bad file descriptor
[2014/09/22 18:04:24.221210, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2014/09/22 18:17:24.946396, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Bad file descriptor
[2014/09/22 18:17:24.946705, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2014/09/22 18:30:25.660192, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Bad file descriptor
[2014/09/22 18:30:25.660459, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2014/09/22 18:43:26.385341, 0] ../source3/printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 - Bad file descriptor
[2014/09/22 18:43:26.385610, 0] ../source3/printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
现在我实际上可以毫无问题地访问或写入我的共享。唯一有点烦人的问题是我的启动被挂起,我必须推动它来告诉它不要安装该文件系统。
在我执行此操作之前,我无法通过 SSH 进入任何内容。我尝试了此站点上的几种方法,但都没有成功。我遗漏了什么吗?
答案1
我也遇到了一些问题(启动 SMB/CIFS 文件和 Active Directory 服务器 [失败]),Samba 日志告诉我:
此时,samba 二进制文件应该用于:'server role = active directory domain controller',或者使用 'server services = +smb' 访问 ntvfs 文件服务器,或者使用 'dcerpc end servers = remote' 访问 rpc 代理。对于域成员和独立文件服务器任务,您应该启动 smbd/nmbd/winbindd。
不确定那是什么意思,但文件共享正在运行。在这里找到了答案 -http://forums.whirlpool.net.au/archive/2345494看一看,也许会对你有帮助2。