admin 管理员组文章数量: 887836
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关闭
临时关闭
setenforce 0
彻底禁用
在 /etc/sysconfig/selinux 或者 /etc/grub.conf 中添加
selinux=0
版权声明:本文标题:windows 访问SAMBA提示没有权限 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1735372902h1719974.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论