
Running X apps as root on a user's display
By default, root does not have the authority to start a client on someone else's X session. If such capability is needed, the following simple instructions will allow it. This method depends on there being only one regular user of the system (the one running the X session).
As root, cd to ~ and do:
rm ~/.Xauthority
ln -s ~user/.Xauthority
where user is the name of the user with the X session. Next, determine what display the session is using. To find out, enter:
echo $DISPLAY
as the user. Usually this will be :0.0. Put the environment variable and its value into root's .bash_profile and you're all set.



Users browsing this forum: No registered users and 1 guest