3

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.

0

1 Answer 1

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.

1
  • This didn't work for me. It just returned me to the terminal I was already using under the current login.
    – MrOodles
    Oct 17, 2011 at 22:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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