我在网络(Windows和Linux客户端)中看到了我的Samba共享和文件夹/文件,但我无法在其中编写或创建文件。在Linux上是Folder 777? smb.conf是只读的= no和writable = yes ... thx用于任何帮助
smb.conf(testparm):
[global]
workgroup = workgroup
netbios name = xyz
server string = Samba Server Version %v
map to guest = Bad User
passdb backend = tdbsam
username map = /etc/samba/smbusers
max log size = 50
hosts allow = 127., XXX.YYY.ZZZ.WWW
cups options = raw
[Test1]
path = /xyz/Test1
valid users = ZZZZ
read only = No
create mask = 0777
directory mask = 0777
ls -l:
drwxrwxrwx 3 ZZZZ smbusers 4096 14. Mär 13:55 Test1
答案 0 :(得分:-1)
我必须为smbd进程更改"安全增强型Linux策略"
http://linux.die.net/man/8/samba_selinux
如果要允许samba共享任何文件/目录读/写,则必须打开samba_export_all_rw布尔值。
setsebool -P samba_export_all_rw 1
如果您想查看您的状态:
getsebool -a | grep samba