centos7上配置Samba服务器完成与windows的文件共享
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7上配置Samba服务器完成与windows的文件共享相关的知识,希望对你有一定的参考价值。
1:安装samba服务
命令如下:yum -y install samba samba-client samba-common
2:修改samba的配置文件一般在/etc/samba/cd /etc/samba/
备份一下配置文件 cp smb.conf smb_back,conf
(必须在samba目录下)
3:修改配置文件:
[[email protected] samba]#vi smb.conf
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[myshare]
comment = myshare
path = /
writable = yes
4:创建共享目录文件:
这里的文件名是wufei
然后设置密码:
重启服务:
systemctl restart nmb
systemctl restart smb
ps -ef | grep nmb
5:关闭防火墙:
systemctl stop firewalld
systemctl status firewalld
setenforce 0
6:测试启动
账号密码设置可用
具有读写权限
以上是关于centos7上配置Samba服务器完成与windows的文件共享的主要内容,如果未能解决你的问题,请参考以下文章