Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I issue "gnome-terminal" command as a root user it is opening a new terminal in root user mode only. Now my question is that "Is there any way to open a new terminal in normal user mode even when we issue 'gnome-terminal' command from root user mode?"

"'xyz#' gnome-terminal" should open a new terminal with "xyz:~$" prompt.

share|improve this question
    
Just click Ctrl + Alt + T as when terminal is working as root it doesn't expect to be launching a Terminal window for another user (you!) –  SimplySimon Jul 23 '13 at 13:54

1 Answer 1

Use su , and log in with your account:

su - yourUserName -c 'gnome-terminal'

As an alternative, you may use the runuser  command:

runuser -l  yourUserName -c 'gnome-terminal'
share|improve this answer
    
Thanks for your reply. –  vijay Jul 25 '13 at 3:56
    
That's not what runuser is for. Use su or sudo. –  Zenexer Nov 23 '13 at 4:54

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.