您的位置:首页 > Web前端

Fedoera 20 安装 samba 服务器.md

2016-04-05 23:14 274 查看

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

8. 更详细优化设置

参考:在CentOS 7中Samba服务安装和配置
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: