Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jun 9 '11 at 12:55

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

2 Answers 2

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

 
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.