Call me paranoid but my everyday account has no privileges.
I have a 'administrator' account who is in wheel. When I want to perform administrative tasks, I open a terminal and do
su - administrator
sudo ...
This works fine in most situations, except with X11 applications.
sudo xeyes
fails with
Can't open display:
What I've tried:
- start X11 with the everyday user
- do
xhost +localhostwith everyday user - do
export DISPLAY=:0with administrator
How can I run a X11 application with the administrator account when my desktop runs with the everyday user?
xhost +work? Or are you too paranoid to try even that? – Jason Salaz♦ Apr 12 '12 at 3:20