Skip to content
Nosce Te Ipsum
  • Home
  • About me
  • My COETAIL Blogs
    • Course 1
    • Course 2
    • Course 3
    • Course 4
  • Testimonials
    • Professional
    • Personal
Site Search

Hide/Show MAC OS X user

  • June 8, 2010June 8, 2010
  • by Muhammad
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Pin on Pinterest
Pinterest
Share on Reddit
Reddit
Email this to someone
email
Share on StumbleUpon
StumbleUpon
Digg this
Digg

to hide user in MAC OS X

create the account in System Pref. or by command line

========

sudo dscl . create /Users/$USERNAME
sudo dscl . create /Users/$USERNAME PrimaryGroupID 0
sudo dscl . create /Users/$USERNAME UniqueID 0
sudo dscl . create /Users/$USERNAME UserShell /bin/bash
sudo dscl . passwd /Users/$USERNAME $PASSWORD
sudo dscl . append /Groups/admin GroupMembership $USERNAME

Replace $USERNAME and $PASSWORD with the username and password you want to use.
===============

The new account will be created as a root-level account. If you like, change the PrimaryGroupID and UniqueID to something else.

to see the UID of users

====
dscl . list /Users UniqueID
====

set their UID to be less than 500
to change the UID

====
dscl . -change /Users/will UniqueID 501 1000
====

above command changes UID from 501 to 1000 for user “will”

following command will hide all such users from login window (system pref. accounts window)
====
sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool TRUE
====

to hide an account manually use this command
====
sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add ‘account1’
====

after hiding the users there can be “others” appearing in the login window. to remove this use this command
====
sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE
====

you can use above commands in reverse to show the users in System Prefs. e.g.

command below will show the hidden users in System Prefs and Login windows
====
sudo defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool FALSE
====

Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Pin on Pinterest
Pinterest
Share on Reddit
Reddit
Email this to someone
email
Share on StumbleUpon
StumbleUpon
Digg this
Digg
Alternate to VMPS / Dynamic VLAN assignment on routers
install ffmpeg with codecs on Linux Redhat / CentOS
Muhammad
hide users mac os x show users snow leapord

Related articles

Installing RD9700 chipset based USB…
How to hide a user…
Convert MP3 to iPhone ringtone
Serial Emulator under Mac OS…
Wireshark on MAC
Spamassassin rules
Apple Handy Guide
dotproject installation issues

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Follow Me!

Follow Me On TwitterFollow Me On LinkedInFollow Me On PinterestFollow Me On About.meFollow Me On Wordpress
May 2025
M T W T F S S
« Oct    
 1234
567891011
12131415161718
19202122232425
262728293031  

2009 2010 2011 Amelie apache beijing birthday clearos crèpes debian december 2009 dubai email february firewall guide holidays ill install internet kuala lumpur linux list mac maheen mobile october 2009 outlook Pakistan raspberry raspberry pi router search Sharepoint smtp snow spring ubuntu unix VLAN VPN windows 7 winter xian Zimbra

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

Categories

Licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Theme by Colorlib Powered by WordPress
  • Home
  • About me
  • My COETAIL Blogs
  • Testimonials