su[ing] retaining the environment.
As I am doing some maintenance work these days, I am logging in as root, on tty1. On tty6 I log in as non-root user foo_1 and run the GUI. On this GUI, I have Konsole. Running it, it opens a terminal for me, and I find myself as foo_1 and having inherited root's environment. What I want to do from this terminal in which I'm foo_1, is to su to root retaining the environment. But how to do it?
If I made myself clear, this environment I want, is that which I had when I logged into tty1 after turning on the machine. Of course, if Konsole would log me in directly as root and with the initial environment, I would be saving myself a step, namely, su. Thank you for reading.
EDIT: the desktop environment is Xfce4 and it offers Main Menu>Terminal and Konsole. Konsole seems to be a kind of terminal for root, although it doesn't su me to root.
Last edited by stf92; 12-15-2010 at 08:44 AM.