centos7上配置Samba服务器完成与windows的文件共享
2021-07-11 21:07
标签:end gre client samba服务 host 启动 yum ext row centos7上配置Samba服务器完成与windows的文件共享 标签:end gre client samba服务 host 启动 yum ext row 原文地址:http://blog.51cto.com/13956204/2173798
命令如下:yum -y install samba samba-client samba-common
2:修改samba的配置文件一般在/etc/samba/cd /etc/samba/
备份一下配置文件 cp smb.conf smb_back,conf
(必须在samba目录下)
3:修改配置文件:
[root@localhost 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的文件共享
文章链接:http://soscw.com/index.php/essay/103856.html