Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like an other way to change my current user than by GUI.

It would be great that if you can change the user as fast as you can your login shell by chsh.

How can you change the user in OS X's terminal?

share|improve this question

migrated from Jun 9 '11 at 12:55

This question came from our site for professional and enthusiast programmers.

up vote 5 down vote accepted

Normal Unix would do that with 'su' meaning 'super user'.

Something like

su - otherusername

GUI applications might or might not work, I don't know on OSX...

share|improve this answer
Thank you for your answer! – Masi Jul 30 '09 at 18:10

su actually means “substitute user”.

Use su -l USERNAME to simulate a full shell logon that changes your variables and sets you to the user's home directory.

Type man su for other options.

share|improve this answer

Your Answer


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.