经过几个小时的寻找后,我在这里寻求帮助。
我的设置是:
- 服务器:Ubuntu Server 14.04.3 LTS
- 客户端:Win 7 与 Unix 用户登录结合
昨天SMB还好好的,今天回家之后就连接不上股票了。
我当前使用 ssh 的用户连接得很好,可以在客户端上找到服务器。但是如果我输入“root”->“mnt”,我会得到一个权限被拒绝的信息...多媒体工作得稍微好一点,但仅限于直接在同一驱动器上的多媒体。有多个符号链接不起作用。
请有人帮忙 :(
我的 SMB 配置(Testparm 看起来不错。)
[global]
workgroup = ZIRP
server string = %h server (Samba, Ubuntu)
dns proxy = no
; interfaces = 127.0.0.0/8 eth0
; bind interfaces only = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
map to guest = bad user
[Home]
path = %H
comment = Home Directories
; browseable = no
; read only = yes
create mask = 0755
directory mask = 0755
;valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
write list = root, @lpadmin
[Multimedia]
path = /mnt/Festplatte2/Multimedia
follow symlinks=yes
[Root]
path = /
valid users = benjamin
write list = benjamin
writable = yes
follow symlinks=yes
答案1
我自己找到了答案http://ubuntuforums.org/showthread.php?t=1600541
将以下几行添加到 smb.conf 的 [global] 部分:代码:follow symlinks = yes wide links = yes unix extensions = no
然后重新启动samba服务:代码:sudo service smbd restart