Home  >  Article  >  Operation and Maintenance  >  How to create a user in Linux

How to create a user in Linux

angryTom
angryTomOriginal
2020-03-11 14:21:086452browse

We know that Linux is a multi-user operating system. The default root user has many administrative rights. If we want others to use some of the rights, we need to create a new user. So how to add it? These commands are discussed below.

How to create a user in Linux

How to create a user in Linux

1. Log in to the Linux system as root and enter the terminal:

How to create a user in Linux

2. Use the useradd command to add a new user such as: testone, as follows:

How to create a user in Linux

3. For security reasons we You need to set a password, use the passwd command:

How to create a user in Linux

4. When we try to work as a new user, that is, switch to testone, use the su command:

How to create a user in Linux

This article comes from the PHP Chinese website,

Linux system tutorial

column, please continue to pay attention to this column for more related tutorials!

The above is the detailed content of How to create a user in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn