<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What if you set !env_reset for that user/group in /etc/sudoers ?<div><br><div><div>On Mar 18, 2009, at 3:33 PM, <<a href="mailto:jim.sifferle@tektronix.com">jim.sifferle@tektronix.com</a>> <<a href="mailto:jim.sifferle@tektronix.com">jim.sifferle@tektronix.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi All,<br><br>I'm having some problems with sudo on NX sessions. If I'm logged in as a regular user, whenever I run an application like Wireshark through sudo, I get the following error:<br><br>Xlib: connection to ":1000.0" refused by server<br>Xlib: No protocol specified<br><br><br>(wireshark:10825): Gtk-WARNING **: cannot open display: <br><br>Is sudo resetting an environment variable needed to access the xauth information? Any idea how I could fix this besides running 'xhost +' before 'sudo wireshark'? <br><br>I'm running CentOS 5.2 if it makes any difference.<br><br>Thanks,<br><br>Jim Sifferle<br>Danaher T&M / Tektronix Network Services<br>Work: 503-627-5364<br>Mobile: 503-860-5558<br><a href="mailto:Jim.sifferle@tektronix.com">Jim.sifferle@tektronix.com</a><br><br><br>________________________________________________________________<br> Were you helped on this list with your FreeNX problem?<br> Then please write up the solution in the FreeNX Wiki/FAQ:<br><br><a href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ">http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</a><br><br> Don't forget to check the NX Knowledge Base:<br> http://www.nomachine.com/kb/ <br><br>________________________________________________________________<br> FreeNX-kNX mailing list --- FreeNX-kNX@kde.org<br> https://mail.kde.org/mailman/listinfo/freenx-knx<br>________________________________________________________________<br></div></blockquote></div><br></div></body></html>