RE: [SLE] gnomesu and switched environment
Andre Truter wrote on Mon, 29 Mar 2004 4:20:31 PM EST:
Hi All,
I found that when I use gnomesu to start an app as root, it does not use root's environment, but my own.
For example, if I start gnome-terminal as root, using gnomesu, the root terminal has my $USER, $HOME, $LOGUSER, etc variables.
How can I get gnomesu to run the application in root's environment?
There is not man for gnomesu and Google does not give much.
Thanks --
Andre Truter (sig line trimmed)
Hi, I take it there is a reason why you can't just use: "sux -" in a terminal, and then after logging in, starting the application as "root." ??? Whatever!!! You might try: "gnomesux -" and see what environment it gives you. Hope this helps. -- In the Beginning was the Command Line --- Neal Stephenson -- __________________________________________________________________ Introducing the New Netscape Internet Service. Only $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp
On Tue, 2004-03-30 at 05:40, GarUlbricht7@netscape.net wrote:
Hi,
I take it there is a reason why you can't just use: "sux -" in a terminal, and then after logging in, starting the application as "root." ???
Yes, there is a reason. I want to run gnome-terminal as root, so that I can just add more tabs if I need more terminals. I don't want to open a new terminal, type "sux -", login, etc each time I need a new root terminal.
Whatever!!! You might try: "gnomesux -" and see what environment it gives you.
I don't have a command called gnomesux and I did not find any with pin. -- Andre Truter Software Engineer Registered Linux user #185282 ICQ #40935899 AIM: trusoftzaf http://www.trusoft.co.za ~ "Oh Bother!" said the Borg, "We assimilated the Pooh!" ~
The Tuesday 2004-03-30 at 06:43 +0200, Andre Truter wrote:
Yes, there is a reason. I want to run gnome-terminal as root, so that I can just add more tabs if I need more terminals. I don't want to open a new terminal, type "sux -", login, etc each time I need a new root terminal.
This works from a user terminal: sux - -c xterm or sux - -c gnome-terminal But not in background. Maybe you can create an icon starter for it.
I don't have a command called gnomesux and I did not find any with pin.
Documentation of gnomesu is in /opt/gnome2/doc/gnomesu/* -- Cheers, Carlos Robinson
participants (3)
-
Andre Truter
-
Carlos E. R.
-
GarUlbricht7@netscape.net