Delete User

Posted:
in macOS edited January 2014
I am having trouble deleting a user. I have tried to do it even in root. The directory is gone, and when I press delete in System Prefs, it does seem to create a directory structure in deleted users. However, the user stays in system prefs and appears at login. Is there any way that I could delete the user manually - say, with the terminal for example?

Comments

  • Reply 1 of 6
    userdel <username>

    userdel -r <username> to delete their 'home' as well.
  • Reply 2 of 6
    Funny... I get "Command Not Found"
  • Reply 3 of 6
    chychchych Posts: 860member
    I had this issue, I think I just made a folder called the user's name and stuck it in /users, then deleted it from sys prefs.
  • Reply 4 of 6
    find / -iname 'userdel'



    /path/to/userdel -r <username>
  • Reply 5 of 6
    of course, you have to be root, but that's obvious, so I won't mention:



    su

    <enter root's passwd>



    find / -iname etc,etc...
  • Reply 6 of 6
    I still don't get anything but don't worry about it - I was going to format anyways...
Sign In or Register to comment.