分页: 1 / 1
为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
发表于 : 2016-02-13 22:41
由 Smoke1988
[global]
workgroup = workgroup
netbios name = debian 7 (2)....
server string = debian 7 (2)....
encrypt passwords = true
security = share
unix charset = utf-8
dos charset = utf-8
smb password file = /etc/samba/smbpassword
[tmp]
public
path = /root/tmp
comment = "tmp"
read only = no
guest ok = yes
这是smb.conf文件,还差什么么?
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
发表于 : 2016-02-13 22:47
由 Smoke1988
而且我的/root/tmp的权限已经是777了
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
发表于 : 2016-02-13 22:50
由 vickycq
Smoke1988 写了:这是smb.conf文件,还差什么么?
尝试
代码: 全选
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
guest account = nobody
参考
https://wiki.archlinux.org/index.php/Sa ... d_password
http://ubuntuforums.org/showthread.php?t=1709425
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
发表于 : 2016-02-14 0:57
由 Smoke1988
vickycq 写了:Smoke1988 写了:这是smb.conf文件,还差什么么?
尝试
代码: 全选
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
guest account = nobody
[/url]
还是不行
代码: 全选
[global]
workgroup = workgroup
netbios name = debian 7 (2)....
server string = debian 7 (2)....
encrypt passwords = true
security = share
unix charset = utf-8
dos charset = utf-8
smb password file = /etc/samba/smbpassword
guest account = nobody
[tmp2]
public
path = /root/tmp
comment = "tmp"
read only = no
guest ok = yes
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
发表于 : 2016-02-14 1:02
由 vickycq
Smoke1988 写了:
还是不行
按第一个参考链接试试看
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
发表于 : 2016-02-14 7:21
由 poloshiao
path = /root/tmp
而且我的/root/tmp的权限已经是777了
1. 所謂權限 要從 / 根目錄 起算
至少要有 x 權限 (進入瀏覽)
1-1. sudo ls -al / | grep
root
drwx---
--- 34 root root 4096 2月 9 20:49 root
1-2. guest 沒有 x 權限 進入
/root 瀏覽 當然
/root/tmp 就是 可望而不可及
2.
/root 是 使用者 root 家目錄
只有 使用者 root 登入 才能存取
別的使用者不行 包含 guest
2-1. 避免把分享檔案 放在 任何使用者家目錄 除非只供登入的使用者本人存取
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
发表于 : 2016-02-14 11:58
由 Smoke1988
poloshiao 写了:path = /root/tmp
而且我的/root/tmp的权限已经是777了
1. 所謂權限 要從 / 根目錄 起算
至少要有 x 權限 (進入瀏覽)
1-1. sudo ls -al / | grep
root
drwx---
--- 34 root root 4096 2月 9 20:49 root
1-2. guest 沒有 x 權限 進入
/root 瀏覽 當然
/root/tmp 就是 可望而不可及
2.
/root 是 使用者 root 家目錄
只有 使用者 root 登入 才能存取
別的使用者不行 包含 guest
2-1. 避免把分享檔案 放在 任何使用者家目錄 除非只供登入的使用者本人存取
啊,是这样啊,谢谢
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
发表于 : 2016-10-14 15:01
由 人在井天
需要smbpasswd -a 用户名
添加用户
比如
smbpasswd -a root
添加root用户,这里设定的密码好像可以与系统密码不一致。
创建的samba用户必须在系统用户中存在。否则samba找不到系统用户则创建失败