LFCS 33 🐧 Deleting Users and Groups
Deleting an account is not the reverse of creating one. The account leaves traces: a home directory, a mail spool, a crontab, running processes, file ownership across the filesystem, and entries in /etc/passwd, /etc/shadow, /etc/group, and /etc/gshadow. The userdel and groupdel commands remove the account entries, but the rest of the cleanup is the administrator’s…