K, guys, the plot thickens like a good roux cooked between 7 and 9 am on a hot July morning in Louisiana when the air conditioner is busted.
so... I went over to a Windows station.
I installed Xming.
I then tried to run sudo -u userb xclock and I got the same error.
I did some research...
I found out that although this worked on our OLD server (yea, we recently went from 5.3 to 6.1), the new box it isn't working on. I found out that environment preservation in the new version of sudo is not enabled. I had to go into visudo and changed the line for this command to:
usera ALL=(userb) NOPASSWD:/usr/bin/X11/xclock,/opt/tax/application
Thus, the DISPLAY environment variable (and also variables that the tax app needs) will be preserved.
After adding SETENV to sudoers I was able to run sudo -E -u userb xclock. CHEESE WIZZ!
The good news is that this has solved the problem for my end user who uses a workstation with Xming to run her tax software.
The bad news is that I am the Unix Sysadmin and I can't tell you why it won't run from my linux (ubuntu 10.10) station. Considering it works with Xming, I have to assume that its a problem with my XServer on Ubuntu.
Last edited by DennisC31; 04-11-2012 at 06:26 PM.
Reason: corrected the setenv line.