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 have an account on my OS X Mavericks system that I want to disable so it cannot be used for login. I would not like to delete the account permanently but rather disable it temporarily.

I believe that this was possible in Lion – but maybe my memory plays tricks on me?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

You can disable a user account by setting their shell to /usr/bin/false.

Either run chsh -s /usr/bin/false <username>, or change it in Users & Groups → Advanced Options. To change it back, run chsh -s /bin/bash <username>.

share|improve this answer
    
I was aware of this trick, but does it also apply to GUI logins? –  mgd Jun 16 at 12:18
1  
@mgd Yes it does :) –  grgarside Jun 16 at 12:19

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.