Home > System Tutorial > LINUX > body text

Tutorial: How to delete a normal user account in Ubuntu system?

王林
Release: 2024-01-02 12:34:22
forward
2281 people have browsed it

A lot of users have been added to the Ubuntu system. I want to delete the unused users. How to delete them? Let’s take a look at the detailed tutorial below.

1. Open the terminal command line and use the userdel command to delete the specified user. Be sure to add the sudo permission command, as shown in the figure below

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

2. When deleting, must pay attention to the in the administrator directory. Ordinary users do not have this permission , as shown in the figure below

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

3. After the deletion command is executed, how to determine whether it has been truly deleted? Next we use the cat command to open the passwd file, as shown in the figure below

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

4. We see that the deleted user information is no longer in the

passwd file, which proves that the user has been deleted, as shown in the figure below

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

5. Then we enter

the home folder, what you can see is the deleted user, its folder has not been deleted , as shown in the figure below

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

6. If you also want to delete the user’s folder,

need to bring the r parameter, as shown in the figure below prompt, but you must pay attention when performing this operation

Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程

7. In summary, to delete a user in Ubuntu mainly uses the

userdel command , pay attention to the use of the parameter r.

The above is the detailed content of Tutorial: How to delete a normal user account in Ubuntu system?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
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