How to view hidden users, add & delete?

I administer eMacs and iBooks in an elementary school setting. Ideally, having hidden users like an administrator, would clean up login page and make the system more secure. The login page would not normally display the hidden login users until required.

How do you view, add & delete hidden users?

MacPro 2.8 RAID, G4 1.42DP, Mac OS X (10.5.6)

Posted on May 21, 2009 12:42 PM

Reply
8 replies

May 21, 2009 11:42 PM in response to BDAqua

Thanks for that suggestion. It is a bit cumbersome to do each time though.

Is there a key that can be pressed at startup to show hidden admin users? (Upon restart, defaults back.)

What would be the command line to "hide admin users", rather than individual names? This would simplify the task each time.

For now, I used a Library/Preferences/com.apple.loginwindow.plist file that has a "HideAdminUsers" command in it, and used it by simply replacing the standard com.apple.loginwindow.plist file that displays all users. Conversely, I switched them back when the task was done.

May 22, 2009 11:09 AM in response to Peter Fal

I'm not sure. But are you sure that you actually need to log in to the admin account on a regular basis? Nearly all admin and even root tasks can be done from a non-admin account by authenticating with an admin username and password when prompted. I do admin and root tasks this way all the time from my non-admin account. It has been months since I needed to actually log in to my admin account. Might this work for you?

May 22, 2009 11:54 AM in response to Peter Fal

For now, I used a Library/Preferences/com.apple.loginwindow.plist file that has a "HideAdminUsers" command in it, and used it by simply replacing the standard com.apple.loginwindow.plist file that displays all users. Conversely, I switched them back when the task was done.


It sounds as if you used this command to modify the .plist file:
sudo defaults write /Library/Preferences/com.apple.loginwindow HideAdminUsers -boolean Yes


As an aside, it can be reversed with
sudo defaults write /Library/Preferences/com.apple.loginwindow HideAdminUsers -boolean No


I don't think there is a keystroke to show the hidden admin usernames, but you can log into a hidden admin account with just a few more keystrokes. At the login screen, press the down-arrow to highlight one of the non-admin accounts, then hold down the option key and press Return. At the next window, enter your admin username (the shortname is fine) and enter your admin password. If there is only one non-admin account in the login window, then click the back button before pressing the down-arrow key.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to view hidden users, add & delete?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.