Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /run/user/1000/gdm/Xauthority which is owned by radix.)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
How can I resolve this error?
When I change owner and group of Xauthority
file to root, Firefox runs, but it does not work. When I reboot the system, Xauthority
automatically changes to its original owner and group name.
P.S.: I'm using Ubuntu 18.04.
permissions firefox 18.04 root
add a comment |Â
up vote
1
down vote
favorite
How can I resolve this error?
When I change owner and group of Xauthority
file to root, Firefox runs, but it does not work. When I reboot the system, Xauthority
automatically changes to its original owner and group name.
P.S.: I'm using Ubuntu 18.04.
permissions firefox 18.04 root
Try to copy the xauthority file to /home/root directory.
â kukulo
May 16 at 16:47
@kukulo its not working.
â Harrish Kumar
May 16 at 17:03
4
You shouldn't be running things asroot
. You've probably heard that before, but you really shouldn't be running a browser asroot
. Have you tried with any other users? What problem are you trying to solve by running asroot
to begin with?
â earthmeLon
May 16 at 18:50
@earthmeLon I know I know, but sometimes there are legit resons for that, in my case because I run debian 8 at my workplace and I want to have the latest firefox version, I downloaded firefox from the website and installed in/opt/firefox
. As a user I am not able to do updated (because users are not allowed to write on/opt
) and the only option to do an update for me issudo /opt/firefox/firefox
-> Help -> About Firefox and wait for the update to be downloaded and applied, then I close firefox. With this new feature has made my updates more difficult.
â Pablo
May 23 at 16:51
@earthmeLon In my case I could/should have installed firefox on my$HOME
and I wouldn't need to run firefox as root for the updates. I only run FF as root like I said not for browsing but for letting FF do an auto-update.
â Pablo
May 23 at 16:52
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
How can I resolve this error?
When I change owner and group of Xauthority
file to root, Firefox runs, but it does not work. When I reboot the system, Xauthority
automatically changes to its original owner and group name.
P.S.: I'm using Ubuntu 18.04.
permissions firefox 18.04 root
How can I resolve this error?
When I change owner and group of Xauthority
file to root, Firefox runs, but it does not work. When I reboot the system, Xauthority
automatically changes to its original owner and group name.
P.S.: I'm using Ubuntu 18.04.
permissions firefox 18.04 root
edited Jul 24 at 22:56
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
wjandrea
7,10742054
7,10742054
asked May 16 at 16:43
Harrish Kumar
2415
2415
Try to copy the xauthority file to /home/root directory.
â kukulo
May 16 at 16:47
@kukulo its not working.
â Harrish Kumar
May 16 at 17:03
4
You shouldn't be running things asroot
. You've probably heard that before, but you really shouldn't be running a browser asroot
. Have you tried with any other users? What problem are you trying to solve by running asroot
to begin with?
â earthmeLon
May 16 at 18:50
@earthmeLon I know I know, but sometimes there are legit resons for that, in my case because I run debian 8 at my workplace and I want to have the latest firefox version, I downloaded firefox from the website and installed in/opt/firefox
. As a user I am not able to do updated (because users are not allowed to write on/opt
) and the only option to do an update for me issudo /opt/firefox/firefox
-> Help -> About Firefox and wait for the update to be downloaded and applied, then I close firefox. With this new feature has made my updates more difficult.
â Pablo
May 23 at 16:51
@earthmeLon In my case I could/should have installed firefox on my$HOME
and I wouldn't need to run firefox as root for the updates. I only run FF as root like I said not for browsing but for letting FF do an auto-update.
â Pablo
May 23 at 16:52
add a comment |Â
Try to copy the xauthority file to /home/root directory.
â kukulo
May 16 at 16:47
@kukulo its not working.
â Harrish Kumar
May 16 at 17:03
4
You shouldn't be running things asroot
. You've probably heard that before, but you really shouldn't be running a browser asroot
. Have you tried with any other users? What problem are you trying to solve by running asroot
to begin with?
â earthmeLon
May 16 at 18:50
@earthmeLon I know I know, but sometimes there are legit resons for that, in my case because I run debian 8 at my workplace and I want to have the latest firefox version, I downloaded firefox from the website and installed in/opt/firefox
. As a user I am not able to do updated (because users are not allowed to write on/opt
) and the only option to do an update for me issudo /opt/firefox/firefox
-> Help -> About Firefox and wait for the update to be downloaded and applied, then I close firefox. With this new feature has made my updates more difficult.
â Pablo
May 23 at 16:51
@earthmeLon In my case I could/should have installed firefox on my$HOME
and I wouldn't need to run firefox as root for the updates. I only run FF as root like I said not for browsing but for letting FF do an auto-update.
â Pablo
May 23 at 16:52
Try to copy the xauthority file to /home/root directory.
â kukulo
May 16 at 16:47
Try to copy the xauthority file to /home/root directory.
â kukulo
May 16 at 16:47
@kukulo its not working.
â Harrish Kumar
May 16 at 17:03
@kukulo its not working.
â Harrish Kumar
May 16 at 17:03
4
4
You shouldn't be running things as
root
. You've probably heard that before, but you really shouldn't be running a browser as root
. Have you tried with any other users? What problem are you trying to solve by running as root
to begin with?â earthmeLon
May 16 at 18:50
You shouldn't be running things as
root
. You've probably heard that before, but you really shouldn't be running a browser as root
. Have you tried with any other users? What problem are you trying to solve by running as root
to begin with?â earthmeLon
May 16 at 18:50
@earthmeLon I know I know, but sometimes there are legit resons for that, in my case because I run debian 8 at my workplace and I want to have the latest firefox version, I downloaded firefox from the website and installed in
/opt/firefox
. As a user I am not able to do updated (because users are not allowed to write on /opt
) and the only option to do an update for me is sudo /opt/firefox/firefox
-> Help -> About Firefox and wait for the update to be downloaded and applied, then I close firefox. With this new feature has made my updates more difficult.â Pablo
May 23 at 16:51
@earthmeLon I know I know, but sometimes there are legit resons for that, in my case because I run debian 8 at my workplace and I want to have the latest firefox version, I downloaded firefox from the website and installed in
/opt/firefox
. As a user I am not able to do updated (because users are not allowed to write on /opt
) and the only option to do an update for me is sudo /opt/firefox/firefox
-> Help -> About Firefox and wait for the update to be downloaded and applied, then I close firefox. With this new feature has made my updates more difficult.â Pablo
May 23 at 16:51
@earthmeLon In my case I could/should have installed firefox on my
$HOME
and I wouldn't need to run firefox as root for the updates. I only run FF as root like I said not for browsing but for letting FF do an auto-update.â Pablo
May 23 at 16:52
@earthmeLon In my case I could/should have installed firefox on my
$HOME
and I wouldn't need to run firefox as root for the updates. I only run FF as root like I said not for browsing but for letting FF do an auto-update.â Pablo
May 23 at 16:52
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
earthmeLon's warning is very important, and you should try to solve your problem without having to run Firefox as root
.
However, if for some reason you really need to do that (I won't judge you), you can do this:
sudo -i
To start a root shell, then make a backup of root's .Xauthority
if needed
test -f .Xauthority && mv .Xauthority .Xauthority.bak
Copy the file from your home to root's
cp -a /home/youruser/.Xauthority .Xauthority
chown root: .Xauthority
Then you can start Firefox with:
XAUTHORITY=/root/.Xauthority sudo firefox
Remember to exit
the root shell when you've finished with it.
Also remember to unroll your .Xauthority
backup when done:
sudo -i
test -f .Xauthority.bak && mv .Xauthority.bak .Xauthority
exit
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
earthmeLon's warning is very important, and you should try to solve your problem without having to run Firefox as root
.
However, if for some reason you really need to do that (I won't judge you), you can do this:
sudo -i
To start a root shell, then make a backup of root's .Xauthority
if needed
test -f .Xauthority && mv .Xauthority .Xauthority.bak
Copy the file from your home to root's
cp -a /home/youruser/.Xauthority .Xauthority
chown root: .Xauthority
Then you can start Firefox with:
XAUTHORITY=/root/.Xauthority sudo firefox
Remember to exit
the root shell when you've finished with it.
Also remember to unroll your .Xauthority
backup when done:
sudo -i
test -f .Xauthority.bak && mv .Xauthority.bak .Xauthority
exit
add a comment |Â
up vote
2
down vote
earthmeLon's warning is very important, and you should try to solve your problem without having to run Firefox as root
.
However, if for some reason you really need to do that (I won't judge you), you can do this:
sudo -i
To start a root shell, then make a backup of root's .Xauthority
if needed
test -f .Xauthority && mv .Xauthority .Xauthority.bak
Copy the file from your home to root's
cp -a /home/youruser/.Xauthority .Xauthority
chown root: .Xauthority
Then you can start Firefox with:
XAUTHORITY=/root/.Xauthority sudo firefox
Remember to exit
the root shell when you've finished with it.
Also remember to unroll your .Xauthority
backup when done:
sudo -i
test -f .Xauthority.bak && mv .Xauthority.bak .Xauthority
exit
add a comment |Â
up vote
2
down vote
up vote
2
down vote
earthmeLon's warning is very important, and you should try to solve your problem without having to run Firefox as root
.
However, if for some reason you really need to do that (I won't judge you), you can do this:
sudo -i
To start a root shell, then make a backup of root's .Xauthority
if needed
test -f .Xauthority && mv .Xauthority .Xauthority.bak
Copy the file from your home to root's
cp -a /home/youruser/.Xauthority .Xauthority
chown root: .Xauthority
Then you can start Firefox with:
XAUTHORITY=/root/.Xauthority sudo firefox
Remember to exit
the root shell when you've finished with it.
Also remember to unroll your .Xauthority
backup when done:
sudo -i
test -f .Xauthority.bak && mv .Xauthority.bak .Xauthority
exit
earthmeLon's warning is very important, and you should try to solve your problem without having to run Firefox as root
.
However, if for some reason you really need to do that (I won't judge you), you can do this:
sudo -i
To start a root shell, then make a backup of root's .Xauthority
if needed
test -f .Xauthority && mv .Xauthority .Xauthority.bak
Copy the file from your home to root's
cp -a /home/youruser/.Xauthority .Xauthority
chown root: .Xauthority
Then you can start Firefox with:
XAUTHORITY=/root/.Xauthority sudo firefox
Remember to exit
the root shell when you've finished with it.
Also remember to unroll your .Xauthority
backup when done:
sudo -i
test -f .Xauthority.bak && mv .Xauthority.bak .Xauthority
exit
edited Jul 24 at 22:06
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
Zanna
47.9k13117227
47.9k13117227
answered May 23 at 17:08
![](https://i.stack.imgur.com/WZPm4.jpg?s=32&g=1)
![](https://i.stack.imgur.com/WZPm4.jpg?s=32&g=1)
Pablo
1213
1213
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037052%2frunning-firefox-as-root-in-a-regular-users-session-is-not-supported-xauthori%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Try to copy the xauthority file to /home/root directory.
â kukulo
May 16 at 16:47
@kukulo its not working.
â Harrish Kumar
May 16 at 17:03
4
You shouldn't be running things as
root
. You've probably heard that before, but you really shouldn't be running a browser asroot
. Have you tried with any other users? What problem are you trying to solve by running asroot
to begin with?â earthmeLon
May 16 at 18:50
@earthmeLon I know I know, but sometimes there are legit resons for that, in my case because I run debian 8 at my workplace and I want to have the latest firefox version, I downloaded firefox from the website and installed in
/opt/firefox
. As a user I am not able to do updated (because users are not allowed to write on/opt
) and the only option to do an update for me issudo /opt/firefox/firefox
-> Help -> About Firefox and wait for the update to be downloaded and applied, then I close firefox. With this new feature has made my updates more difficult.â Pablo
May 23 at 16:51
@earthmeLon In my case I could/should have installed firefox on my
$HOME
and I wouldn't need to run firefox as root for the updates. I only run FF as root like I said not for browsing but for letting FF do an auto-update.â Pablo
May 23 at 16:52