Results 1 to 5 of 5
I'd like to run an X application, such as Firefox, as another user, for testing purposes. I've tried a couple things. I got a terminal, and tried:
Code:
su - ...
- 11-02-2006 #1Just Joined!
- Join Date
- Apr 2006
- Posts
- 97
Run X application as another user
I'd like to run an X application, such as Firefox, as another user, for testing purposes. I've tried a couple things. I got a terminal, and tried:
But firefox said "Cannot open display". So I tried:Code:su - otheruser firefox
Firefox started up, but it looked like it was being run as the original user. All of the original user's bookmarks were there, and were writable by Firefox.Code:su otheruser firefox
How can I do this? I want Firefox to really think it is running as "otheruser".
- 11-02-2006 #2Just Joined!
- Join Date
- Jun 2006
- Posts
- 12
try this
#Open the Run command.
#Type firefox and Run it as the root And root Password in the options.
- 11-02-2006 #3Just Joined!
- Join Date
- Jun 2006
- Posts
- 12
try this
#Open the Run command.
#Type firefox and Run it as the root And root Password in the options.
Read more : http://www.flynix.profusehost.net/viewtopic.php?t=37
- 11-02-2006 #4Just Joined!
- Join Date
- Apr 2006
- Posts
- 97
That doesn't work for me. Firefox is still running as the original user. I figured out how to do it though:
Bada bing bada boom.Code:echo $DISPLAY xauth list "$DISPLAY" su - otheruser xauth add <output from xauth above> export DISPLAY="<output from echo $DISPLAY>"
Here's where I found that method:
http://www.linux.com/howtos/Remote-X-Apps-7.shtml
- 02-19-2009 #5Just Joined!
- Join Date
- Feb 2009
- Location
- Colombia
- Posts
- 2
An easier way to do this is, , specially in this case that we're on the same machine is to use the xhost authentication method:
Code:xhost + (allow everyone to connect to X server, you could use also xhost +otheruser) su otheruser firefox


