Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux logs in with different users.

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how linux uses different users to log on, and the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Linux is a multi-user operating system. In order to use the system, users must first log in to the system. After using the system, they must exit the system.

When users log in to the system, in order to enable the system to identify themselves, they must enter a user name and password, which can be verified by the system before they can enter the system. Two kinds of accounts can be created during system installation:

1. Root-- super user account, which can do anything in the system.

2. Ordinary users-this account is for ordinary users and can carry out limited operations.

General Linux users are ordinary users, while system administrators generally use super user accounts to complete some system management work. If you only need to complete some tasks that can be done by an ordinary account, it is recommended not to use a superuser account so as not to inadvertently damage the system.

User login is performed in two steps:

The first step is to enter the login name of the user, according to which the system identifies the user.

The second step is to enter the user's password, which is a string chosen by the user, which is confidential to other users and is a keyword used by the system to distinguish between true and false users when logging in.

In Linux system, the system administrator assigns the user a user name and an initial password when setting up a new account for the user. In addition, the Linux system gives the computer a hostname.

The hostname is used to identify independent computers on the network (even if the user's computer is not connected to the Internet, there should be a hostname). The default host name given by the Linux system is: localhost. In the following example, we assume that the user name is "wah" and the host name of the system is "localhost".

Super user login

The user name of the superuser is root, and the password is set when the system is installed. After the system boots successfully, the screen displays the following prompt:

Localhost login:

Enter the super user name "root" at this point, and then type enter. At this point, the user will see a prompt for a password on the screen:

Localhost login:rootPassword:

At this point, you need to enter a password. When you enter a password, the password does not appear on the screen. If the user enters the wrong password, they will see the following information on the screen:

Login incorrect.

At this point, you need to re-enter. When the user enters the user name and password correctly, he can legally enter the system. The screen shows:

[root@loclhost ~] #

This indicates that the user is logged in to the system and is ready for operation. Where "#" is the superuser's system prompt.

Ordinary user login

After the ordinary user login has established an ordinary user account, you can log in.

When logging in, the user will see a prompt similar to the following on the screen:

Localhost login:

Enter the user name "wah" at this time, and then type enter. At this point, the user will see a prompt for a password on the screen:

Localhost login:wahPassword:

At this point, you need to enter a password. When you enter a password, the password does not appear on the screen. If the user enters the wrong password, they will see the following information on the screen:

Login incorrect.

At this point, you need to re-enter. When the user enters the user name and password correctly, he can legally enter the system. The screen shows:

[wah@loclhost wah] $

This indicates that the user is logged in to the system and is ready for operation.

So much for sharing linux with different user login methods. I hope the above content can be helpful to everyone and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report