Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Delete users accounts from command line in 10.5' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Delete users accounts from command line in 10.5
Authored by: theocrates on Jun 09, '09 03:50:10PM

I recently wanted to do this but kept running into problems, even with the other hints here at the site.

One problem was that while I was able to successfully delete the temp user account and the AppleSetupDone file, even after rerunning the setup upon restart the OS does not set the first user to User ID 501.

Nilness, did you check to see if your hint here resets the User ID to 501 upon rerunning of the setup routine?



[ Reply to This | # ]
10.5: Delete users accounts from command line in 10.5
Authored by: keytohwy on Jun 09, '09 10:03:05PM

Why is that important? To have the user at 501?



[ Reply to This | # ]
10.5: Delete users accounts from command line in 10.5
Authored by: nilness on Jun 10, '09 07:42:35AM

Just checked this on a 10.5 system and yes, the next user id after resetting will be 501.

In 10.4 and earlier IIRC it will be 501 as well, since you're deleting the whole netinfo db.

And for the poster who asked why it matters, if you're recovering data or trying to rebuild the user accounts from another drive it's MUCH easier to make sure the user ids match up from the start.



[ Reply to This | # ]