[Novalug] X clients while sudo'ing?
opus at slowlanecafe.com
Tue Oct 20 21:20:03 EDT 2009
Mark Smith wrote:
> if i sudo to another user and then try to run an X client, it fails
> No protocol specified
> xterm Xt error: Can't open display: :0.0
> i'm thinking i can avoid this with some smart usage of xauth, but
> it's not obvious to me what that smart usage should be. anyone
> have a quick answer for me?
I do the command I want on the same line as the sudo command, such as
sudo root nmapfe
This works for me in both Debian and Ubuntu.
Salisbury, MD, USA
"A truly happy person is one who can enjoy the scenery on a detour."
More information about the Novalug