当前位置: > RedHat >

rhel 7 配置 samba

时间:2016-05-21 00:52来源:linux.it.net.cn 作者:IT
安装程序并添加用户


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
create mask = 644
directory mask = 770

启动服务加入开机启动
# systemctl enable smb
# systemctl enable nmb
# systemctl start smb
# systemctl start nmb

测试
smbclient -L hostname/IP
(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容