firefox profile access problem on linux platform

Discussion of general topics about Mozilla Firefox
Locked
esolve
Posts: 29
Joined: April 2nd, 2011, 10:56 am

firefox profile access problem on linux platform

Post by esolve »

I downloaded a firefox linux package
uncompress it and put it under my home dir
when I 'cd' into firefox and run the following command with my user account "esolve"

Code: Select all

./firefox

it works fine
but when I switch to root account, and run

Code: Select all

sudo -u ./firefox

I see the errors below, and firefox can't be opened, THEN I tried to modify the package owner: chown -R esolve:esolve firefox, the error persists and firefox still can't be opened

Code: Select all

Error: Access was denied while trying to open files in your profile directory


if I just run it as root account, there will be errors but firefox can still be opened

I tried the same version of firefox package in another linux machine before and when I'm with root account
"sudo -u esolve ./firefox " works fine
what is wrong with this? it is strange

coz I need to use "sudo -u esolve ./firefox " in a script, otherwiser I will just switch to esolve and run ./firefox
so I hope to deal with this error
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Re: firefox profile access problem on linux platform

Post by trolly »

Duplicate, locking. Continue the discussion here: viewtopic.php?f=38&t=2616725
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
Locked