Deleting and creating users with terminal in recovery mode?

Discussion in 'Mac Basics and Help' started by ihminen, Jan 8, 2015.

  1. ihminen macrumors newbie

    Joined:
    Jan 8, 2015
    #1
    Hi, would anyone know how to delete and create user accounts in recovery mode? Precise steps would be awesome because im not too experienced with UNIX.
    I already tried the userdel and useradd in urs\sbin folder.. "command not found", sudo or not.

    I managed to bust up my OSX lion so it freezes in the grey apple start screen. Steps I took to succeed in that was:

    1.Renamed my user account 2.Removed all permissions from "everyone" from my homefolder

    I've tried all the basic NVRAM/PRAM resettings, repairing disks and user permissions with disk utility and restarting in safe-mode without any luck. The symptoms are not exactly the same but I thought to try this one trick from a post that I saw, deleting the renamed user account and creating one back with the old name (though not with terminal here):

    Last comment: How Should I Correct the Owners and Permissions in an OS X Lion User Folder?
     
  2. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #2
    Just follow this guide to get it to rerun the initial setup and you can make a new admin account from there to get back in.
     
  3. ihminen thread starter macrumors newbie

    Joined:
    Jan 8, 2015
    #3
    Thank you sir, I hadn't bump into this one yet. The freezing screen still occurs though when rebooting. So didn't get to the steps to delete or recreate yet, i'll try that in some other way.
     

Share This Page