[Novalug] X clients while sudo'ing?
Opus
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
> with:
>
> 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.
--
Andy Anderson
Salisbury, MD, USA
http://www.slowlanecafe.com
"A truly happy person is one who can enjoy the scenery on a detour."
- Anonymous
More information about the Novalug
mailing list