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 开放共享目录权限
sudo chmod -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关闭
临时关闭文章来源:https://www.toymoban.com/news/detail-787361.html
setenforce 0
彻底禁用
在 /etc/sysconfig/selinux 或者 /etc/grub.conf 中添加文章来源地址https://www.toymoban.com/news/detail-787361.html
selinux=0
到了这里,关于windows 访问SAMBA提示没有权限的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!