建立Samba服务器,并根据以下要求配置Samba服务器.

建立Samba服务器,并根据以下要求配置Samba服务器.,第1张

首先安装samba包,在光盘里,或者从网上下载一个。
安装samba包之后,修改samba的配置文件。
vim /etc/samba/smbconf,在[global]里修改如下字段:
workgroup = 07jw
security = user
hosts allow = 19216830 127

groupadd salers
groupadd managers
建立用户 useradd -G salers -N mary
再把mary加入经理组 usermod -a -G mary managers
建立 salers 文件夹 mkdir -p /share/sale_data
改变用户 chown mary /share/sale_data
改变组 chgrp salers /share/sale_data
改变权限 chmod 2755 /share/sale_data
增加samba 用户 smbpasswd -a mary
chkconfig --level 35 smb on
# smbconf
[sale]
comment = SalesDirectories
path = /share/sale_data
public = yes
read=@sale
write list = mary
#改变权限 chmod 555 /share/public_data
[public]
comment = Public Directories
path = /share/public_data
public = yes


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zz/10761663.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-11
下一篇2023-05-11

发表评论

登录后才能评论

评论列表(0条)

    保存