Hi, I've erased my MacBook Pro, re-installed the Snow Leopard OS X and added some applications with a temporary user and am attempting to erase that user so the computer will be "like new". I don't know a lot about this stuff but I found these instructions for the end:
Everything worked fine except the line beginning with "nicl". That line brought the response "-sh: nicl: command not found".
I started the machine up again and there was no user, so I created a new one and tried it all again with the new user, and the same thing with the "nicl" line. Again I started it and there was no user, so I'm thinking the line above the "nicl" might erase the user from sight, but the "nicl" line that's actually supposed to erase the user isn't working so those users I've created might be hiding somewhere.
I googled and found that "nicl" and "netinfo" might only work on Leopard and earlier, and that "dscl" might replace it.
How would the line be written with "dscl" instead to make it work to erase a user, or is there some other command that would work?
Code:
Software must be installed into root level applications folder (/applications and not ~/applications).
Reboot and hold down command-s.
Enter:
/sbin/fsck -y
/sbin/mount -uw /
Then to delete user account used to install applications:
rm -r /Users/[user's short name]
nicl -raw /var/db/netinfo/local.nidb delete /users/[user's short name]
Then to make machine start set-up assistant again:
rm /var/db/.AppleSetupDone
Then to shut down:
shutdown -h now
Everything worked fine except the line beginning with "nicl". That line brought the response "-sh: nicl: command not found".
I started the machine up again and there was no user, so I created a new one and tried it all again with the new user, and the same thing with the "nicl" line. Again I started it and there was no user, so I'm thinking the line above the "nicl" might erase the user from sight, but the "nicl" line that's actually supposed to erase the user isn't working so those users I've created might be hiding somewhere.
I googled and found that "nicl" and "netinfo" might only work on Leopard and earlier, and that "dscl" might replace it.
How would the line be written with "dscl" instead to make it work to erase a user, or is there some other command that would work?