Help

VPS en dedicated servers (mijn servers) Help

Remove a Linux user

You can remove old users from your Linux server. This will revoke the user's SSH access, and remove that user's file and directory ownership.

Difficulty: 1
Time: 5 minutes

Remove the user

  1. Log in to your server via SSH.
  2. Switch to the root user:
    sudo su -
  3. Use the userdel command to remove the old user:
    userdel user's username
  4. Optional: You can also delete that user's home directory and mail spool by using the -r flag with the command:
    userdel -r user's username
    Warning: Only delete a user's home directory if you are certain you no longer need their files or mail.

Next step

  • If you need to remove individual SSH keys, you can Delete SSH keys from your account.
  • For more detailed information about the userdel command, view the man page by typing man userdel into your SSH window.

Was dit artikel nuttig?
Hartelijk dank voor je feedback. Gebruik het supporttelefoonnummer of de bovenstaande chatoptie als je een vertegenwoordiger van de afdeling Klantenondersteuning wilt spreken.
Fijn dat we konden helpen! Kunnen we nog iets voor je doen?
Dat spijt ons. Vertel ons wat je verwarrend vond of waarom je probleem niet is opgelost via de geboden oplossing.