II. How to Remove (Delete) a User on Fedora 23
- These instructions are specifically for adding a user on Fedora 23. The process is identical in most other Linux operating systems.
- For this tutorial, we’ll be using a Liquid Web Self Managed Fedora 23 server, logged in as root.
Step #1: Add the User
In this case, we’re adding a user called “newuser”:
Now set the new user’s password:
After entering the new password, you will need to enter it a second time to confirm.
Step #2: Give the User Root Privileges
We’ll need to edit the sudoers file to add permissions for the new user. To open the file for editing, enter the following command:
Find the following code:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
In this case, we’re granting root privileges to the user “newuser”. Add the following below that code:
newuser ALL=(ALL) ALL
Then type :wq to exit and save the file.
If you’ve followed the instructions correctly, then you now should have a user named newuser who can use sudo to run commands as root!
Should you want to remove (delete) the user, follow the instructions at How To Remove (Delete) a User on Fedora 23.
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.