LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 788|回复: 7

smba的小问题请教

[复制链接]
发表于 2003-7-2 16:24:10 | 显示全部楼层 |阅读模式
我已经做了个smab,步骤跟这里发表的大同小异.不过我把security=share修改为security=root.这样我的samba就只能是我的root.这次成功了
第二次,我把security=share修改为security=user.发觉有点问题,就是有人登陆我的samba共享时候,当要求输入用户名密码时,他按了取消.结果可以登陆.权限是完全控制.我就不明白.
高手们可以不可以讲讲关于security的问题吗?
发表于 2003-7-2 19:56:38 | 显示全部楼层
security=root?
找遍文档也没有这个写法,你是怎么做的?
我看到的是:
security=share/user/server/domain
 楼主| 发表于 2003-7-2 20:57:04 | 显示全部楼层
我以前是真的这么做的,结果所有的共享都只能是root用户才可以访问.root用户拥有绝对的访问权.
其他用户(我的意思是说输入的用户是一般的user)都看不见共享,他们只能访问他们自己的home.
发表于 2003-7-2 21:13:21 | 显示全部楼层
man smb.conf仔细看看
security=*的写法,
http://us1.samba.org/samba/docs/man/smb.conf.5.html#SECURITY

Security
This option affects how clients respond to Samba and is one of the most important settings in the  smb.conf file.

The option sets the "security mode bit" in replies to protocol negotiations with smbd(8) to turn share level security on or off. Clients decide based on this bit whether (and how) to transfer user and password information to the server.

The default is security = user, as this is the most common setting needed when talking to Windows 98 and Windows NT.

The alternatives are security = share, security = server or security = domain .
发表于 2003-7-2 21:14:18 | 显示全部楼层
他和client连进来的权限无关,
发表于 2003-7-2 21:15:14 | 显示全部楼层
它决定了smbd运作的模式,
发表于 2003-7-2 21:17:05 | 显示全部楼层
看一下log记录
或是
testparm 检验一下。
 楼主| 发表于 2003-7-3 01:22:02 | 显示全部楼层
呵呵,算了
我是以前这么搞的,现在是user,用起来挺好的.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表