Linux login and logout

  

Enter the Linux system: You must enter the user's account, you can create the following two accounts during the system installation process:

1. Root– superuser account (system administrator), use this account to do anything in the system. 2. Ordinary user & ndash; This account is for ordinary users and can be used for limited operations.

General Linux users are ordinary users, and system administrators generally use superuser accounts to complete some system management tasks. If you only need to complete some tasks that can be completed by a normal account, it is recommended not to use a super user account to avoid inadvertently destroying the system. Affect the normal operation of the system.

User login is divided into two steps: the first step is to enter the login name of the user, and the system identifies the user according to the login name; the second step is to input the password of the user, which is a string set by the user. It is confidential to other users and is the keyword used by the system to identify true and false users when logging in.

When the user enters the username and password correctly, they can enter the system legally. The screen displays:
[root@loclhost /root] #

At this point, you can do various operations on the system. Note that the super user's prompt is “#”, the prompts of other users are “$”.

Modifying passwords In order to better protect the security of user accounts, Linux allows users to modify their own passwords at any time. The command to change passwords is passwd, which will prompt the user to enter the old password and the new password, and then ask the user again. Confirm the new password to prevent the user from accidentally pressing the wrong button. If the user has forgotten the password, he can apply to the system administrator to reset one for himself.

Virtual Console Linux is a true multi-user operating system
that can accept multiple users at the same time. Linux also allows a user to log in multiple times, because Linux, like UNIX, provides a way to access the virtual console, allowing users to log in multiple times from the console at the same time. The selection of the virtual console can be achieved by pressing the Alt key and a function key. Usually, F1-F6 is used. For example, after the user logs in, press the Alt-F2 key, and the user can see the <quo;login:” prompt. Explain that the user saw the second virtual console. Then just press Alt-F1 and you can go back to the first virtual console. A newly installed Linux system by default allows users to access the first six virtual consoles using the Alt-F1 to Alt-F6 keys. The virtual console allows users to work on multiple consoles at the same time, truly embodying the multi-user features of the Linux system. Users can switch to another virtual console to start another job when the work done on one of the virtual consoles is not over yet.

Exiting the System Whether you are a superuser or a normal user, you need to exit the system. At the shell prompt, type the exit command.

Copyright © Windows knowledge All Rights Reserved