How to Delete a User in Fedora/Red Hat

The userdel command is used to remove or delete user account.

1. View the existent of the user

[root@keem ~]# finger keem
Login: keem                             Name: (null)
Directory: /home/keem                   Shell: /bin/bash
Never logged in.
No mail.
No Plan.

2. Remove user account with home directory & mail spool.

[root@keem ~]# userdel -r keem

3. Verify

[root@keem ~]# finger keem
finger: keem: no such user.

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)