1 检查配置文件 /etc/samba/smb.conf 是否有问题
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers =yes
cups options = raw
[homes]
comment = Home Directories
valid users= %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[data]
comment = Do not arbitrarily modify
path = /home/share
public =yes
writable =yes
valid users= mliu
write list = mliu
guest ok = no
2 开放共享目录权限
sudochmod -R go+rwx /home/share/
3 确保linux下防火墙关闭
关闭防火墙:
systemctl stop firewalld.service
开启防火墙:
systemctl start firewalld.service
关闭开机启动:
systemctl disable firewalld.service
开启开机启动:
systemctl enable firewalld.service
4 确保setlinux关闭
临时关闭
setenforce 0
彻底禁用
在 /etc/sysconfig/selinux 或者 /etc/grub.conf 中添加
selinux=0
本文转载自: https://blog.csdn.net/shanglianlm/article/details/130922196
版权归原作者 mingo_敏 所有, 如有侵权,请联系我们删除。
版权归原作者 mingo_敏 所有, 如有侵权,请联系我们删除。