Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
    
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
add comment

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

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

userdel -rf 
share|improve this answer
add comment

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