Starting firefox under a different user
I've set up a second user for myself on my laptop.
My user on the laptop is 'tiger' Let's call the second user 'jrdobbs' I would like to log on to gmail/facebook/etc using the jrdobbs, but I don't want to switch users via X... I just want a second instance of firefox open, which stores all of its login information under /home/jrdobbs. My naive attempt looked like this: Code:
su -l -c "firefox" jrdobbs
Code:
$ su -l -c firefox jrdobbs This gives the following: Code:
$ su -l -c "firefox --display $DISPLAY" jrdobbs I also tried the following: Code:
$ ssh -X jrdobbs@localhost firefox |
As tiger in a terminal type:
Code:
xhost 127.0.0.1 |
repo, thanks, I forgot about xhost.
Still no dice: Code:
$ xhost 127.0.0.1 |
Just found this: http://pr0gr4mm3r.com/linux/how-to-s...ser-in-ubuntu/
according to the article, the magic seems to look like this: Code:
xhost +local:jrdobbs |
That worked like a champ.
|
THANKS!!!!!! YOU GUYS ARE LIFESAVERS!
Just to sum it up for anyone else that's looking for this answer (it wasn't super clear for me when I was reading the thread): To launch GUI apps as another user, you input the following command only once: xhost +local:usersname and then you only need to use use this command: sudo -u usersname -H APPSname |
For the benefits of people relying on this old post, note that this solution is incorrect.
I know it's an old post, but it is still relevant today. At the least on Ubuntu, the command
Code:
xhost +local:jrdobbs Code:
xhost +SI:localuser:jrdobbs |
All times are GMT -5. The time now is 01:00 PM. |