安装samba
yum install -y samba
启动samba服务
systemctl start smb
修改samba配置
vim /etc/samba/smb.conf
[username]
comment = username home directory
browseable = yes
path = /home/username
guest ok = no
read only = no
writable = yes
create mask = 0644
write list = username
valid users = username
将用户新增到samba
1. 必须是系统用户
smbpasswd -a username
将smb设置开机自启动
chkconfig smb on
chkconfig nmb on
网友评论