我的samba共享的文件夹(共有权限已经调整好)在其他winxp客户端上为什么还是只读的。

来源:百度知道 编辑:UC知道 时间:2024/05/09 10:36:26
我的服务器操作系统为fodra linux 已经装samba 文件服务, 已经将samba的配置文件改好,而且相应的共享文件夹已经设置为完全共享,但是现在还是不能够实现读写操作,只能实现只读权限,高手给解释下。
[public]
writeable = yes
valid users = @csage
write list = @csage
path = /public
force directory mode = 0777
force create mode = 0777
comment = Public Stuff
public = yes

[testpub]
locking = no
writeable = yes
printable = no
write list = @csage
path = /testpub
force directory mode = 777
force create mode = 777
comment = testpub
valid users = @csage
public = yes
create mode = 777
directory mode = 777

你的SAMBA配置文件中有security = user ,说明需要认证.这时,在配置文件中需将[共享资源]下的valid users开启,后面为有效用户.
如果希望用户有可写权,需将配置文件中[共享资源]里的writeable开启,后面设为yes.说明有可写权!并在服务器上给共享目录设足够权限!你题中说已将共享目录设为完全权限,相必是配置文件中没有开启writeable.至于可以访问,则是因为配置文件中[共享资源]里的browseable缺省配置为yes,而你已在服务器上为共享目录设为完全权限,所以可以访问!
当然,改完配置文件后别忘了重启服务呀!

用root登陆,然后对你的目录执行:
chmod 777 <你的目录路径>
例如:
chmod 777 /public