Fedoera 20 安装 samba 服务器
1. 安装 samba
[root@localhost ~]# yum install samba
2. 添加用户
添加用户:[root@localhost ~]# adduser smb
添加密码:[root@localhost ~]# smbpasswd -a smb
3. 配置 samba
[root@localhost ~]# cd /etc/samba/
[root@localhost ~]# cp smb.conf smb.conf.bak(备份 samba 配置文件)
[root@localhost ~]# vim smb.conf
设置如下
4. fedora 系统配置
(1)关闭 SELinux
[root@localhost /]# vi /etc/selinux/config
(2)关闭防火墙
[root@localhost ~]# systemctl disable firewalld(禁止自启动)
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl status firewalld (查看firewalld状态)
5. 重启samba
[root@localhost /]# systemctl restart smb.service nmb.service
6. 开机自启samba
[root@localhost /]# systemctl enable smb.service nmb.service
7. 测试 samba
使用ifconfig
查看网卡ip, 打开windows运行
输入如:\\192.168.2.146