How to create a user in Linux

angryTom
Release: 2020-03-11 14:21:08
Original
6484 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!