« Tree -t your right... | Main | What do Lions eat? »

March 13, 2006

How to Hide a User Account in Mac OS X

It turns out that the trick to hiding a user account is the userid needs to be less than 500. The always-enjoyable Mac Geekery has explicit instructions for changing an account:


Make the user in System Preferences (secretadmin in this case)

Quit System Preferences

In Terminal:

$ sudo dscl .
Password:
> cd /Users/secretadmin
> read
...
UniqueID: 502
...
/Users/secretadmin > change . UniqueID 502 402
/Users/secretadmin > change . NFSHomeDirectory /Users/secretadmin /var/root

Open System Preferences; the user should not show up (ID is below 500)

Delete the now-unused home in /Users

Posted by Ozguru at March 13, 2006 06:00 AM