II. How to Remove (Delete) a User on Fedora 23
Pre-Flight Check
- These instructions are intended specifically for removing a user on Fedora 23. The process on most other Linux operating systems is identical.
- For this tutorial, we’ll be using a Liquid Web Self Managed Fedora 23 server, logged in as root.
Step #1: Delete the User
In this case, we’re removing the user we added in How To Add a User and Grant Root Privileges on Fedora 23, newuser:
userdel newuser
If you want to remove the user and all of the user’s files as well, you can include the “-r” flag:
userdel -r newuser
Step 2: Remove the User’s Root Privileges
Run the command:
visudo
And find the following code:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
newuser ALL=(ALL) ALL
In this case, we’re removing root privileges from the user “newuser”, so remove the following line:
newuser ALL=(ALL) ALL
Related Articles:
- How to Install Adminer MySQL Database Management Tool on AlmaLinux
- How to Edit the PHP Memory for Your WordPress Site via WP Toolkit
- 4 Methods for How to Install Yarn on Windows Server
- How to Install Bpytop Resource Monitoring Tool on AlmaLinux
- How to Fix “This Site Can’t Provide a Secure Connection” Error
- How to Install MongoDB on AlmaLinux

About the Author: dpepper
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.
Latest Articles
How to Install Adminer MySQL Database Management Tool on AlmaLinux
Read ArticleWhat is CGI-Bin and What Does it Do?
Read ArticleTop 10 Password Security Standards
Read ArticleTop 10 Password Security Standards
Read ArticleHow to Use the WP Toolkit to Secure and Update WordPress
Read Article