运维的一个问题 大家帮帮忙!
答案:3 悬赏:40 手机版
解决时间 2021-02-12 03:38
- 提问者网友:姑娘长的好罪过
- 2021-02-11 03:41
运维的一个问题 大家帮帮忙!
最佳答案
- 五星知识达人网友:野味小生
- 2021-02-11 05:19
我也是newer。
假设test1 ,test2,test3分别为research,admin,market员工,普通员工只读权限,管理账户有rwx权限。
useradd -g research test1
useradd -g research Bass_research
useradd -g admin test2
useradd -g admin Bass_admin
useradd -g market test3
useradd -g market Bass_market
使用samba共享服务器
rpm -ivh samba-3.5.4-*
vim /etc/samba/smb.conf
设置 security=user
smbpasswd -a test1 (依次输入Bass_research,test2,Bass_admin,test3,Bass_market)
smbpasswd -e test1 (依次输入Bass_research,test2,Bass_admin,test3,Bass_market)
mkdir -p /var/share/research
mkdir -p /var/share/admin
mkdir -p /var/share/market
chgrp reseach /var/share/research
chown Bass_research /var/share/research
chgrp admin /var/share/admin
chown Bass_admin /var/share/admin
chgrp market /var/share/market
chown Bass_market /var/share/market
chmod 740 /var/share/research
chmod 740 /var/share/admin
chmod 740 /var/share/market
vim /etc/samba/smb.conf
设置
path = /var/share
valid users = test1,Bass_research,test2,Bass_admin,test3,Bass_market
write list = Bass_research,Bass_admin,Bass_market
browseable = yes
假设test1 ,test2,test3分别为research,admin,market员工,普通员工只读权限,管理账户有rwx权限。
useradd -g research test1
useradd -g research Bass_research
useradd -g admin test2
useradd -g admin Bass_admin
useradd -g market test3
useradd -g market Bass_market
使用samba共享服务器
rpm -ivh samba-3.5.4-*
vim /etc/samba/smb.conf
设置 security=user
smbpasswd -a test1 (依次输入Bass_research,test2,Bass_admin,test3,Bass_market)
smbpasswd -e test1 (依次输入Bass_research,test2,Bass_admin,test3,Bass_market)
mkdir -p /var/share/research
mkdir -p /var/share/admin
mkdir -p /var/share/market
chgrp reseach /var/share/research
chown Bass_research /var/share/research
chgrp admin /var/share/admin
chown Bass_admin /var/share/admin
chgrp market /var/share/market
chown Bass_market /var/share/market
chmod 740 /var/share/research
chmod 740 /var/share/admin
chmod 740 /var/share/market
vim /etc/samba/smb.conf
设置
path = /var/share
valid users = test1,Bass_research,test2,Bass_admin,test3,Bass_market
write list = Bass_research,Bass_admin,Bass_market
browseable = yes
全部回答
- 1楼网友:低血压的长颈鹿
- 2021-02-11 08:16
呵呵,问题挺有趣的追问能不能帮忙看下追答对于linux我不熟,windows还可以帮帮你
第
第
- 2楼网友:毛毛
- 2021-02-11 06:57
第一个其实不明白啥意思,是让人写程序,还是做什么
第二个还算明白
read -p "Pls input your password? " RESP
if [ "$RESP" = "joke" ]; then
echo "You password is correct!"
else
echo "You password is wrong"
fi
第二个还算明白
read -p "Pls input your password? " RESP
if [ "$RESP" = "joke" ]; then
echo "You password is correct!"
else
echo "You password is wrong"
fi
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯