The deluser command can be very useful to remove user account or to delete 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:
[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.
[root@fedora ~]# userdel john
[root@fedora ~]#
Remove user or delete user account along with their user home directory and user mail spool.
[root@fedora ~]# userdel -r john
[root@fedora ~]#
Verify the user deleted from the system.
[root@fedora ~]# finger john
finger: john: no such user.
[root@fedora ~]#
댓글