MASIGNASUKAv102
6510051498749449419

Delete user, remove user on Linux Fedora, using userdel command

Delete user, remove user on Linux Fedora, using userdel command
Add Comments
3/18/2015

Delete user, remove user on Linux Fedora, using userdel command


The deluser command can be very useful to remove user account or todelete user account on Linux Fedora machine.  The article below show the step by step to remove user or some say to delete user for Linux Fedora machine.
Command use:
# finger [username] <-- Verify user account on the Linux system
# userdel [username] <-- Remove user account from Linux system
# userdel -r [username] <-- Delete user account, remove home directory including their files and remove mail spool

Verify the existents of user with username john on the system:
Verify Linux user account exist on the system
[root@fedora ~]# finger john
Login: john Name: (null)
Directory: /home/john Shell: /bin/bash
Never logged in.
No mail.
No Plan.
[root@fedora ~]#

Remove user account or delete user account.
Romove user account from Linux system
[root@fedora ~]# userdel john
[root@fedora ~]#

Remove user or delete user account along with their user home directory and user mail spool.
Delete user account from Linux system
[root@fedora ~]# userdel -r john
[root@fedora ~]#

Verify the user deleted from the system.
View information of user account
[root@fedora ~]# finger john
finger: john: no such user.
[root@fedora ~]#

Sorry mate:   No deluser command available right now... maybe soon...
[root@fedora ~]# deluser
-bash: deluser: command not found
[root@fedora ~]#
M