当前位置: 技术问答>linux和unix
samba无法访问
来源: 互联网 发布时间:2016-08-11
本文导语: 配置smb.conf: workgroup = WORKGROUP server string = %U's Samba %v netbios name = fedora log file = /var/log/Samba/log.%m max log size = 50 security = user [fedora Samba] comment = Samba path = /home/suyang/Fedora Samba public = no writable = yes write...
配置smb.conf:
workgroup = WORKGROUP
server string = %U's Samba %v
netbios name = fedora
log file = /var/log/Samba/log.%m
max log size = 50
security = user
[fedora Samba]
comment = Samba
path = /home/suyang/Fedora Samba
public = no
writable = yes
write list = suyang
输入//192.168..
可以看到共享目录,但是打不开,总是无法访问
试过很多方法但是还是不行,请达人帮看一下
workgroup = WORKGROUP
server string = %U's Samba %v
netbios name = fedora
log file = /var/log/Samba/log.%m
max log size = 50
security = user
[fedora Samba]
comment = Samba
path = /home/suyang/Fedora Samba
public = no
writable = yes
write list = suyang
输入//192.168..
可以看到共享目录,但是打不开,总是无法访问
试过很多方法但是还是不行,请达人帮看一下
|
估计是selinux的原因
你可以修改/etc/sysconfig/selinux 吧enforcing改成disabled
然后命令行setenforce 0
或者用Rainsome兄说的 使用selinux强制策略
chcon -R -t samba_share_t /home/suyang/"Fedora Samba"
你可以修改/etc/sysconfig/selinux 吧enforcing改成disabled
然后命令行setenforce 0
或者用Rainsome兄说的 使用selinux强制策略
chcon -R -t samba_share_t /home/suyang/"Fedora Samba"