11 February, 2008

Starting Firefox as a different user

Trying to start firefox as a different user like this:
  sudo -u torred -H firefox
fails with:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(firefox-bin:9132): Gtk-WARNING **: cannot open display:
This can be easily fixed by:
xhost +si:localuser:torred

No comments: