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.

How do I run the terminal in Ubuntu as a different user than the one I am currently logged in as?

This is what I want to do:

Log in to user A.
Open the terminal as user B.
Open new tabs and terminal windows as user B simply by keying ctrl-shift-t and ctrl-shift-n.

Right now, whenever I want to open a new tab or terminal windows as user B, I have to su - username, type in the password, and then cd to the directory I want - and that's just unacceptable for an aspiring superuser.

share|improve this question

1 Answer 1

You can create your own launcher with command:

 gksu -u USER_NAME_B /usr/bin/x-terminal-emulator

It prompts password like when opening synaptic, write password and whole application is opened as USER_NAME_B user, so new tabs should be opened as that user.

share|improve this answer
    
This didn't work for me. It just returned me to the terminal I was already using under the current login. –  MrOodles Oct 17 '11 at 22:02

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.