samba配置

systemctl stop firewalld.service   # 关闭防火墙
setenforce 0      #关闭selinux
yum install samba -y     #安装samba
vim /etc/samba/smb.conf      #配置samba文件 最低下

[public]
comment = Public Stuff
path = /home/samba
public = yes                                          #模板
writable = yes
printable = no
write list = +staff

[韭菜] #文件名
comment = Public Stuff                      #是否可见
path = /home/samba                #路径信息
public = yes
writable = yes
printable = no
write list = +staff

mkdir  韭菜      #创建韭菜文件夹
systemctl restart smb                  #重启samba服务器
useradd lijiba              #创建系统用户
pdbedit -a zhao              #添加samba账号
newpasswd:           #添加samba访问密码

 

原文地址:https://www.cnblogs.com/jiucai/p/12109818.html