LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Starting new terminal window or tab from existing window remaining as root? (https://www.linuxquestions.org/questions/linux-newbie-8/starting-new-terminal-window-or-tab-from-existing-window-remaining-as-root-747564/)

homerun 08-14-2009 11:25 AM

Starting new terminal window or tab from existing window remaining as root?
 
Hi all,

I almost always open several terminal windows or tabs and "su -" to root in each of them, so I can compare output from one terminal window while working in a 2nd, 3rd, etc.

Is there a way to open a 2nd, 3rd, etc terminal window or tab from the first terminal window such that I am already logged on as root, either from the command line or with mouse operation. I've tried running bash and xterm with no success.

Also, I am constantly starting gedit &, kwrite &, nautilus &, fdisk, cfdisk, etc from the command line as root. It would often be more convenient to stay in the GUI to start these apps as root. I am also testing different distos and would like to know of a method that works across all or most distros to open file managers, text editors, etc from such things as the run menu (alt-F2) as root. It is so convenient to use gksu and kdesu, but they don't seem to be available in most distros.


Thanks,

Homerun

mushroomboy 08-14-2009 11:34 AM

It's done for security reasons, if you want to do heavy editing as root log in as root. I wouldn't advice it, though I do it time from time if things aren't working and I need quick access to edit the system. Normally I do as you are doing, running things as root. You could get gksu, graphical run as for different users. It can save the root pass for the current session so you can keep running programs without typing in the password. As for being logged as root automatically I wouldn't know any good ideas, I don't do it for the same reasons that most people probably don't. =P sorry, but gksu is a good investment.


All times are GMT -5. The time now is 08:04 PM.