Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do you kick a benign user off your system?

I'm trying to remove a user account with the userdel -r command. However, it says that it is unable to remove the user because they are still signed in - even if I boot the machine without explicitly using that account it still says this. I've tried using sudo pkill -KILL -u but with no success. Any help appreciated.

share|improve this question

marked as duplicate by xenoterracide Nov 27 '12 at 0:10

This question was marked as an exact duplicate of an existing question.

You can force it with -f. But you should probably find out why and how they are logged in first, or you may leave your system in an inconsistent state. – ire_and_curses Nov 26 '12 at 23:16

Try using the -f option to forcefully delete the user.

userdel -rf 
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.