Linux ????????????
???????????? ???????[ 2014/5/23 10:17:30 ] ????????Linux ??????? ??????
????<4> pwconv ???? ??????д??shadow???
????pwconv
?????????????д???
#!/bin/bash
#add-some-users.sh
#The script is add some users to a new group.
echo "Welcome to the add some users!"
echo -n "Please input the new group(example : mygroup) : "
read my_new_group
groupadd $my_new_group
echo -n "Add the $my_new_group group is successful!"
echo "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"
echo "Then add some users to the $my_new_group group!"
echo -n "Please input the username(example: student) : "
read new_user
echo -n "Please input the username(begin_id)(example: 1 ) : "
read begin_id
echo -n "Please input the username(end_id)(example: 10 ) : "
read end_id
echo "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"
for ((i=$begin_id;i<=$end_id;i++))
do
#add the new_user to the my_new_group??and no add new_user's group
useradd -n -g $my_new_group $new_user$i
#delete the new_user password
passwd -d $new_user$i
chage -d 0 $new_user$i //
done
echo "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"
|
????5.2 ???????su ?root
????groupadd sugroup
????chmod 4550 /bin/su
????chgrp sugroup /bin.su
????ls -l /bin/su
?????趨?????sugroup???????????????su?л?root
????sueradd bob
????passwd bob
????usermod -G sugroup bob
????5.3 ??sudo ???su
????sudo ????????? /etc/sudoers
????(?????)?????????????
????visudo
?????????????????????????????(??????)=????·????
???????磺
????????????bob 192.186.9.3=/usr/sbin/useradd??/usr/sbin/userdel
??????????? %webadmin host1=/bin/vim /etc/httpd/conf/httpd.conf
????groupadd sugroup
????chmod 4550 /bin/su
????chgrp sugroup /bin.su
????ls -l /bin/su
?????趨?????sugroup???????????????su?л?root
????sueradd bob
????passwd bob
????usermod -G sugroup bob
????5.3 ??sudo ???su
????sudo ????????? /etc/sudoers
????(?????)?????????????
????visudo
?????????????????????????????(??????)=????·????
???????磺
????????????bob 192.186.9.3=/usr/sbin/useradd??/usr/sbin/userdel
??????????? %webadmin host1=/bin/vim /etc/httpd/conf/httpd.conf
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Linux??????DDR????????????Linux?????????????????豸??????????linux???в???????????м??????????????????????????Linux????Linux??DNS????????????γ???????????Linux?????????????Linux????(???)????????Linux ????????????????????????????????Windows???У?Linux???????Linux????????????????Linux iommu??vfio???????Linux????ε???TCP???????Linux?????????????СLinux?·???????????Linux???Jexus?й?Asp.Net Core??ó???Linux?????????Щ??
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????