molezz BAR

生命科学和计算机技术 开始使用

rhel 7 配置 samba

安装程序并添加用户

sudo yum install samba samba-client samba-common
sudo smbpasswd -a user

修改 / etc/samba/smb.conf 文件
workgroup = WORKGROUP

[share]
path = /home/share
browseable = yes
writable = yes
valid usrs = user
<span class="operator"><span class="keyword">create</span> mask = <span class="number">644</span>
directory mask = <span class="number">770</span></span>
启动服务加入开机启动
# systemctl enable smb
# systemctl enable nmb
# systemctl start smb
# systemctl start nmb
# firewall-cmd --permanent --add-service=samba
# firewall-cmd --reload
测试
smbclient -L hostname/IP

评论
留下你的脚步