Linux ????????????
???????????? ???????[ 2014/5/23 10:17:30 ] ????????Linux ??????? ??????
????????????passwd ?????
???????????????
?????????????? usermod -l ??????? ???????
???????????????飺usermod -G sys bob_fu
???????????????userdel [-r] ????? ??-r ????????????????
????????????????: gpasswd ????
????gpasswd [-adArR] ????? ????
????-a ?????????????????
????-d ??????????????
????-A ?????????????
????-r ????????????
????-R ???????л??????
???????磺
????gpasswd webadmin
????gpasswd -a bob_fu webadmin
????gpasswd -A bob_fu webadmin
????gpasswd -r webadmin
????????????????passwd -l jack / usermod -L jack
????????????????passwd -uf jack / usermod -U jack
?????л??????飺newgrp webadmin
???????????飺groups lisi
????????飺groupadd [-g GID] ???? ?????? grep webadmin /etc/group??
????????飺groupdel webadmin
???????????groupmod -n ???? ????
????3??????????
????pwck ???/etc/passwd??????????????
????vipw ??/etc/passwd????????????????
????id ?????id???????
????finger ???????????
????su ?л???? ??su - ???????
????passwd -S ???????????
????who??w ??????????????
????grpck ???????????????
????vigr ??/etc/group??????????????
????chage [-lmM] ????????LINUX??????
????-l ????????????? chage -l jack
????-m ????????С????
????-M ?????????????
????-d ?????????????
????-I ???????????????????
????-E ???????????????????0?????????????????????-1??????????
????-W ?????????????????????????
????4???????????sofeware ?? ??jack ??mary??д???
????root???????????
????mkdir /software
????????????????
????useradd jack
????useradd mary
????????????
????password jack
????password mary
????????????
????groupadd softadm
???????????????
????usermod -G softadm jack
????gpasswd -a mary softadm
????????????
????grep softadm /etc/group
??????????root??????softadm??
????chgrp softadm ./software
?????????????д???
????chmod g+w ./software
????5?????(RedHead???)
????5.1 ??????????
????<1> newusers???????????????
???????? user.info ????????
test01::10001:503::/home/test01:/bin/bash
test02::10002:503::/home/test02:/bin/bash
test03::10003:503::/home/test03:/bin/bash
test04::10004:503::/home/test04:/bin/bash
test05::10005:503::/home/test05:/bin/bash
test06::10006:503::/home/test06:/bin/bash
newusers < user.info
|
????<2> pwunconv ??????? shadow password ????
????pwunconv
????<3> chpasswd???? ????????
????????pass.info ????????
test01:admin+01
test02:admin+02
test03:admin+03
test04:admin+04
test05:admin+05
test06:admin+06
chpasswd <pass.info
|
??????
???·???
??????????????????
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