1、关闭防火墙:iptables -F
2、setenforce 0
3、修改 vi /etc/sysconfig/selinux
SELINUX=disabled
附:可访问samba配置:
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
# log files split per-machine:
log file = /var/log/samba/log.%m
# maximum size of 50KB per log file, then rotate:
max log size = 50
security = user
passdb backend = tdbsam
ohome -s /bin/false "%u"
load printers = yes
cups options = raw
#============================ Share Definitions ==============================
[samba]
comment = samba
path = /
public = yes
writable = yes
write list = root
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
valid users = root
# 执行如下命令
smbpassword -a root # 回车,修改root对应密码
阅读(1841) | 评论(0) | 转发(0) |