Linux Operations Command (i)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.