Firefox bookmarks gone! (more info)

Matt Zimmerman mdz at canonical.com
Sun Oct 10 08:06:00 UTC 2004


On Sun, Oct 10, 2004 at 12:44:48AM -0700, Daniel Robitaille wrote:

> > > Yup, that would be it. It loaded root's empty bookmark file and saved it
> > > over yours. Beware.
> > 
> > Yeah, that happened to me too. How's that for screwed up behaviour...
> 
> it's a byproduct of running a application like firefox as root via  a
> simple sudo.
> 
> To get a proper "root environment" for Firefox, you need to do something
> like "sudo su - " then run firefox, which this time will be exactly as
> if you were logged on as root via X.
> 
> Just compare the output from the environment variable $HOME done from
> a normal "sudo -s"  versus one done with "sudo su - ":
> 
> $ sudo -s
> # echo $HOME
> /home/daniel
> 
> $ sudo su -
> #  echo $HOME
> /root

"sudo -s -H" does the right thing in this respect.

-- 
 - mdz




More information about the ubuntu-users mailing list