- 安装samba,
yum install samba
- 配置
/etc/samba/smb.conf
,在末尾追加内容:[root] comment = samba share path = / browseable = yes writeable = yes guest ok = no read only = no valid user = root
- 停止并禁用防火墙
systemctl stop firewalld.service systemctl disable firewalld.service
- 修改配置
vim /etc/selinux/config 修改SELINUX=permissive reboot系统,重启生效
- 设置密码
smbpasswd -a root
- 重启服务,并设置开机启动
systemctl restart smb systemctl enable smb
网友评论