初学linux做下这些题----多多练习
1.?????? 添加用户u1和u2,并设置口令(配置如下)
[root@mxl /]# useradd u1?
[root@mxl /]# useradd u2
[root@mxl /]# passwd u1
Changing password for user u1.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@mxl /]# passwd u2
Changing password for user u2.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
2.?????? 查看/etc/passwd及/etc/shadow文件内容,确认两个用户建立
[root@mxl /]# cat /etc/passwd
u1:x:502:502::/home/u1:/bin/bash
u2:x:503:503::/home/u2:/bin/bash
[root@mxl ~]# cat /etc/shadow
u1:$1$CwCsbz/P$/Nod9KfmG1YrJbjLjqWKU0:14040:0:99999:7:::
u2:$1$5A8z1F5L$gDvZ