Su
English Explanation: Switch User
Role: Toggles the currently logged-on user to another user.
How to use: su [-l] Username
Instance:
[[email protected] ~]# clear[[email protected] ~]# su hby[[email protected] root]$
[[email protected] root]$ su root password: [[email protected] ~]# su-l hby[[email protected] ~]$
passwd
English Explanation: Password
Role: Modify the user's login password
How to use: passwd username
Note: For root, password complexity is not required, but for ordinary user passwords it must conform to complexity rules, numbers, letter case, and symbol combinations.
Instance:
[Email protected] ~]$ passwd hbypasswd: Only the root user can specify the user name. [[email protected] ~]$ su root password: [[email protected] hby]# passwd hby change user hby password. New Password: invalid password: Too simplistic/systematized invalid password: Too simple to reenter the new password: passwd: All authentication tokens have been successfully updated. [Email protected] hby]#
This article is from the "rush to the Internet" blog, be sure to keep this source http://huangbaoying.blog.51cto.com/9267029/1543167