Login CentOS Logon (logout) command

Source: Internet
Author: User

The login command can be used to log out the current Logon account and log in with another user name. Of course, you can also specify the corresponding account to log on.


Login

[Syntax] login [Options] [parameters]
[Details] directly enter login as the login account name, and press Enter. The system will prompt you to enter the password.
[Option]


Option corresponding function-p maintains the current environment during login. -H: Specify the remote computer name-f: Specify the user name
Example:
1. log on to the kwxgd account using login

Enter login in the current account (root). The system will automatically log off the root account and give a new Logon account string.


Login

Enter your other user name and password as prompted.

If the account password is correctly verified, you can log on to the kwxgd account.


2. Log On directly using login kwxgd
Login kwxgd

If you execute login kwxgd in the current account, the password input box is displayed. You do not need to enter the account again.


Note:

If the "/etc" directory contains the "nologin" file, only root login is allowed, and other users cannot log on.

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.