[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文件,还差什么么?
为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
-
- 帖子: 36
- 注册时间: 2010-12-26 4:11
-
- 帖子: 36
- 注册时间: 2010-12-26 4:11
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
而且我的/root/tmp的权限已经是777了
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
尝试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
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 帖子: 36
- 注册时间: 2010-12-26 4:11
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
还是不行vickycq 写了:尝试Smoke1988 写了:这是smb.conf文件,还差什么么?[/url]代码: 全选
# Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user "nobody" is used guest account = nobody
代码: 全选
[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
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
按第一个参考链接试试看Smoke1988 写了: 还是不行
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
path = /root/tmp
1. 所謂權限 要從 / 根目錄 起算 至少要有 x 權限 (進入瀏覽)而且我的/root/tmp的权限已经是777了
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. 避免把分享檔案 放在 任何使用者家目錄 除非只供登入的使用者本人存取
-
- 帖子: 36
- 注册时间: 2010-12-26 4:11
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
啊,是这样啊,谢谢poloshiao 写了:path = /root/tmp1. 所謂權限 要從 / 根目錄 起算 至少要有 x 權限 (進入瀏覽)而且我的/root/tmp的权限已经是777了
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. 避免把分享檔案 放在 任何使用者家目錄 除非只供登入的使用者本人存取
-
- 帖子: 1081
- 注册时间: 2009-04-29 21:22
Re: 为什么samba服务器配置了guest ok = yes 还是需要密码访问。系统密码和samba密码必须一样么?
需要smbpasswd -a 用户名
添加用户
比如
smbpasswd -a root
添加root用户,这里设定的密码好像可以与系统密码不一致。
创建的samba用户必须在系统用户中存在。否则samba找不到系统用户则创建失败
添加用户
比如
smbpasswd -a root
添加root用户,这里设定的密码好像可以与系统密码不一致。
创建的samba用户必须在系统用户中存在。否则samba找不到系统用户则创建失败