I wanted to talk about a little thing I use sometimes when preparing to give a computer for a buy out or if selling a machine. you can also you this if you have lost the admin password to reset it.
Restart the computer into Single User Mode by pressing Command + S after the gong.
This command will mount the Hard Drive
mount -uw /
Then you use this command to remove the users, remove the network setup and the last part of the command triggers the startup configuration to run again. NOTE: in OS X 10.5 and 10.6 the netinfo section no longer is needed.
rm -rf /Users/ /var/db/netinfo/local.nidb /var/db/.AppleSetupDone
Once your are done run this command to reboot or shutdown.
reboot(orshutdown -h nowif you don’t want the machine to turn back on)
Thats pretty much it. If there are other Apple questions anyone has, I am more then happy to go though them