![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change Account to not lock account if password expires | stringzz | UNIX for Dummies Questions & Answers | 1 | 04-04-2008 02:31 PM |
| Emacs in terminal for OS X Leopard | USFstudent | OS X (Apple) | 1 | 04-04-2008 06:42 AM |
| Vi in Leopard | Gale Gorman | OS X (Apple) | 4 | 03-26-2008 06:10 PM |
| Setting an account to be a non-login account automatically? | LordJezo | UNIX for Dummies Questions & Answers | 0 | 06-16-2006 06:28 AM |
| Hidding Files in UNIX | smdakram | UNIX for Dummies Questions & Answers | 3 | 01-13-2002 05:05 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hiding The Administrator Account in OS X 10.5 (Leopard)
I would like to know how to hide my initial account (which is an administrator account) in the new Leopard 10.5 operating system.
In the old OS 10.4 this could be done very easily with the help of NetInfo Manager. You could change the UID to anything below 500 and secure your account, however in the new 10.5 OS this is no longer possible. NetInfo manager is no longer. Is there a script that can be entered via terminal that takes care of this? In terminal you can check the user database with the following: dscl . list /Users UniqueID In raw UNIX you can check with the following: cat /etc/passwd Any pro help would be appreciated. ![]() Last edited by unimachead : 03-22-2008 at 08:50 PM. |
| Forum Sponsor | ||
|
|
|
|||
|
I think also if you set the UID to under 500 it will hide it from the finder but not the loginwindow, if you use the previous line above with the sudo default write command it should do from both.
Sorry, I didn't fully read the original post. I take quick breaks from work and browse forums to clear my mind of something I am working on, and so as of a result I sometimes hastily answer things. To answer your question about the user id, UID, you can set it by using the dscl command in OS X. For example, lets say you have a user called hidden administrator, short name hadmin Code:
dscl / -create /Users/hadmin UniqueID 401 Last edited by tlarkin : 03-24-2008 at 11:43 AM. |
|
|||
|
I think I've found a solution for the hiding the admin account, but it took a little experimenting to get it to work. At first I had dropped the UID & GID to 102 and along with script: sudo dscl .-change /Users/pgsql UserShell "/bin/bash" "/usr/bin
false" ... it hides the account, but weirdly locks you out at the login screen. Things seem to be much smoother by dropping the UID to 499 and the GID to 501 along with the script: defaults write /Library/Preferences/com.apple.loginwindow Hide500Users -bool YES This hides the account well with no problems. I'm still experimenting with a few other things, but this should do the trick. |
|||
| Google UNIX.COM |