Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I want to create a user(say, hera) that can only be used in terminal. That is this user does not appear in the Mac welcome screen. This user can be su - hera by other users.

Can I do this and how?

share|improve this question
    
Do you mean "Terminal.app" or a shell (e.g., bash)? –  soxman Dec 19 '12 at 8:28
2  
Could you elaborate on what you're trying to achieve? Because if your only concern is for that user not to appear on the login screen, there could be other solutions. –  Thecafremo Dec 19 '12 at 9:34

1 Answer 1

I echo the comments above. I'm not sure why you would want to bother hiding the user, why not just have a single admin account, making everyone else "standard" accounts and use sudo in the CLI (Command Line Interface - "Terminal.app") if you need to.

Anyway, here is the Apple tech article on creating hidden users and/or just hiding users from the login window:

Set the Login window to display name and password fields

In the Users & Groups preferences pane (Accounts pane in Mac OS X v10.6 and earlier), click Login Options, then select "Display login window as: Name and password".

With this enabled, no user accounts are listed in the Login window.

If changing the Login Window to only display the name and password fields does not meet your needs, then you can use the following steps in this article to hide a user account.

Add users to the HiddenUsersList (advanced)

With Mac OS X v10.4 and later you can hide users from the Login window by adding them to the HiddenUsersList array in the /Library/Preferences/com.apple.loginwindow.plist file. The following command will hide the users "mei" and "anne" from the Login window:

sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add mei anne

Note: These users will still appear in the Accounts (Mac OS X v10.6 and earlier) or Users & Groups (OS X Lion) pane in System Preferences.

Source: http://support.apple.com/kb/HT5017

share|improve this answer
    
While the link you provided may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. I've edited your question to include what I believe was the solution that you were referring to, however if it wasn't please quote the relevant section. –  grgarside Feb 18 at 13:44
    
Hiding a user can be useful for cosmetic reasons alone. I manage Macs for some businesses and we require admin users to perform functions but when the end users only see their accounts, they have less to track on the screen. The only caveat is that this doesn't prevent those "hidden" users from logging in, just makes you enter the short or long name and password in the "Other" user field. –  bmike Feb 18 at 14:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.