Samba共享权限问题
发布网友
发布时间:2022-05-10 05:48
我来回答
共1个回答
热心网友
时间:2023-11-07 21:35
用Windows可以打开共享的文件夹,
但是当我打开共享的文件的时候就提示无法访问,没有权限。 具体的smb.conf文件如下 #======================= Global Settings ===================================== [global] workgroup = Workgroup server string = Samba Server hosts allow = 172.16. printcap name = /etc/printcap load printers = yes printing = cups cups options = raw guest account = root log file = /var/log/samba/%m.log max log size = 50 security = user passwd:*all*authentication*tokens*updated*successfully* socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no username map = /etc/samba/smbusers guest ok = yes guest account = root #============================ Share Definitions ============================== [homes] comment = Home Directories browseable = no writeable = yes [test.txt] path = /root/test/test.txt writeable = yes browseable = yes valid users = root 求一个设置好的smb.conf文件,只要能实现共享功能并且有完全权限就行! 注:/root/test/test.txt这个文件以及它的父文件夹都已经给了完全权限,任何人都拥有读取写入和执行权限Hi, I received your email and be here to response you,please check the two options: 1, security = user, maybe it will be "share" 2, samba user shouldnt be root for secutiry reason.学习linux基本命令,推荐《linux就该这么学》!