好吧,我在Centos 6.7环境中配置了smb,我已经用smbpasswd -a添加了root用户,当我从
windows框浏览到共享时,我连接samba root用户我为其创建了密码,但我不知道当我点击目录时,我有
linux root权限.如您所见,我想访问/.这是配置:
[Daze] comment = Default connect path = / valid users = admin root force user = root force group = root browsable = yes admin users = root,root public = yes writable = yes create mask = 0777 read only = No directory mode = 0777
在此先感谢您的帮助!
解决方法
有效用户参数的参数必须以逗号分隔.另外,请注意您键入“可写”而不是可写.并且,因为可写是只读的反向同义词,所以不需要声明只读参数.
这是正确的配置:
[Daze] comment = Default connect path = / valid users = admin,root force user = root force group = root browseable = yes writeable = yes admin users = root public = yes create mask = 0777 directory mask = 0777
使用这些配置重新启动Samba服务器,看看它是否有效.