Linux Account Removal Print

  • 23885

1) lock the account: 
passwd -l

If you ever need to re-enable the account just unlock it:
passwd -u

2) to permanently remove the user just run:
userdel

3) to permanently remove the user  to delete all his files on the system:
userdel -r

Was this answer helpful?

« Back