新建用户 [ root @ldy ~ ] # adduser lidengyin [ root @ldy ~ ] # passwd lidengyin Changing password for user lidengyin . New password : BAD PASSWORD : The password is shorter than 8 characters Retype new password : passwd : all authentica
[root@ldy ~]# passwd lidengyin
Changing password for user lidengyin.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
lidengyin就有了sudo权限,需要sudo密码则为ALL
## Allow root to run any commands anywhereroot ALL=(ALL) ALL
lidengyin ALL=(ALL)