WIN7+VMWARE+fedora18 samba服务器的搭建指南
人气:01.配置root的用户密码(不是必须)
![WIN7+VMWARE+fedora18 samba服务器的搭建](https://img.qb5200.com/download-x/20201208/317530.jpg)
2.安装samba服务
yum install openssh-server
![](https://img.qb5200.com/download-x/20201208/317531.jpg)
3.查看是否已成功安装openssh-server
rpm -qa | grep openssh-server
![](https://img.qb5200.com/download-x/20201208/317532.jpg)
4.配置samba服务
![](https://img.qb5200.com/download-x/20201208/317533.jpg)
找到Share Definitions
加入要共享的目录:
![](https://img.qb5200.com/download-x/20201208/317534.jpg)
确保在根目录底下有 task文件夹,并且至少访问权限在755以上,我用的是777
![](https://img.qb5200.com/download-x/20201208/317535.jpg)
5.尼玛的没找到smbpasswd命令
直接
![](https://img.qb5200.com/download-x/20201208/317536.jpg)
终于可以了
![](https://img.qb5200.com/download-x/20201208/317537.jpg)
6.再次确保vi写了以下的,而且wq了保存下来了:
![](https://img.qb5200.com/download-x/20201208/317538.jpg)
7.因为我用的是root登录,用户早已存在,所以直接:
![](https://img.qb5200.com/download-x/20201208/317539.jpg)
8.开启服务
在服务管理上,fedora16推出了新的管理程序,即 systemctl,具体可以查看手册.
执行指令:
systemctl start smb.service
systemctl start nmb.service
![](https://img.qb5200.com/download-x/20201208/317540.jpg)
9.查看服务状态
测试一下 samba 能否打开,如果没有错误提示则证明可以开启。
systemctl is-enabled smb.service nmb.service 来查看两个服务是否已经开启成功
![](https://img.qb5200.com/download-x/20201208/317541.jpg)
10.执行下面的代码,可以让上述两个服务开机自动启动
systemctl enable smb.service nmb.service
![](https://img.qb5200.com/download-x/20201208/317542.jpg)
11.关掉防火墙、设置SELinux
![](https://img.qb5200.com/download-x/20201208/317543.jpg)
并重启linux
![](https://img.qb5200.com/download-x/20201208/317544.jpg)
12.访问测试
![](https://img.qb5200.com/download-x/20201208/317545.jpg)
![](https://img.qb5200.com/download-x/20201208/317546.jpg)
![](https://img.qb5200.com/download-x/20201208/317547.jpg)
加载全部内容