Samba分享:Wheezy之后,访客登录不起作用->杰西


4

当我仍在使用Wheezy时,我可以毫无问题地访问LAN上的Samba共享。但是更新到Jessie之后,Windows和我的Android手机都给我:SmbAuthException:登录失败

我仍然使用与以前相同的smb.conf:

[global]
workgroup = HOME
netbios name =myDrive
server string = BananaPi
security = user
disable spoolss = yes
log file = /var/log/samba/samba.log
syslog = 0
max log size = 100
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
use sendfile = yes
aio read size = 16384
aio write size = 16384
deadtime = 30
guest account = root

[myDrive]
path = /media
read only = no
available = yes
browseable = yes
writable = yes
guest ok = yes
public = yes

日志非常空:

[2015/10/12 15:47:00.759016,  0] ../source3/lib/util_sock.c:446(open_socket_in)
  open_socket_in(): setsockopt: SO_REUSEPORT = true on port 137 failed with error = Protocol not available
[2015/10/12 15:47:00.761053,  0] ../source3/lib/util_sock.c:446(open_socket_in)
  open_socket_in(): setsockopt: SO_REUSEPORT = true on port 137 failed with error = Protocol not available
[2015/10/12 15:47:00.761454,  0] ../source3/lib/util_sock.c:446(open_socket_in)
  open_socket_in(): setsockopt: SO_REUSEPORT = true on port 137 failed with error = Protocol not available
[2015/10/12 15:47:00.763518,  0] ../lib/util/become_daemon.c:136(daemon_ready)
[2015/10/12 15:47:02.325451,  0] ../lib/util/become_daemon.c:136(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsopen_socket_in(): setsockopt: SO_REUSEPORT = true on port 445 failed with error = Protocol not available
  STATUS=daemon 'nmbd' finished starting up and ready to serve connections*****

  Samba name server MYDRIVE is now a local master browser for workgroup HOME on subnet 192.168.1.70

  *****

我知道如果想从Web上访问该密码是否需要密码,但是现在我只想让LAN访问重新起作用,然后我将重点介绍WAN。

我尝试使用密码以“ root”身份登录,但似乎不起作用。

Answers:


0

设置security = usersecurity = share或使用您的共享指定有效用户valid users = rootforce user = root

我个人使用force user =我的共享,因为我对SMB安全性的变化感到厌倦,使我的共享访问更加混乱,部分原因是Windows客户端访问和身份验证的能力很差。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.