Xclock command not working

Hi,
I am using Xming tool to open the my RHEL machine remotely in UI mode. When I use xclock command using 'root', the command works properly and I can see the clock pop-up. However, when I run the 'xclock' command using oracle user I get an error, which is shown in the attached file.
Can someone tell me the cause and solution for this problem? Let me know if any further information is required.
Thank you in advance !!!

What happens if you log in directly as the oracle user, not via root? Would it work, then?

That's set to prevent any user logged on to the server from accessing YOUR display.

Since a remote X Windows display is accessed by a TCP connection, and TCP has no inherent identification of who is at the other end of the connection, SSH X Windows forwarding as configured on your network sets up authentication on the TCP connection.

Without that authentication, anyone logged on to the remote server could set their X DISPLAY envval to something like ":10.0" and connect to your display.

And do things like change your mouse settings so that your mouse flips between you having to move your mouse about a foot to make your cursor move 3 pixels, and then 3 seconds later set it so when you move your mouse 1/32 of an inch the cursor flies across the screen. And back a few seconds later...

And that's if they're just trying to mess with you. A nefarious user could scrape your screen and log all your keystrokes.

The problem I'm really expecting to see here is that Oracle Universal Installer is an X-Windows tool, so we need to find a way to enable that, albeit temporarily.

I know we don't have this issue, but then we don't have x-windows for anything else, so we've not worried about that.

Robin

Using SSH X forwarding in putty and Xming.

Connect as root :

[root@host][root]# echo $DISPLAY
localhost:10.0
xauth list
<output here>
su - oracle
xauth add <output from above>
export DISPLAY=localhost:10.0
xclock # or other x program.

Hi Peasant,

Thanks for the reply, but I tried these steps earlier and did not work. Please find the attached herewith the file. Any other approach on this.

You seem to be adding your server's IPaddress to itself with:-

xauth add 125.19.55.169:10

...but then you set the display to localhost, which might be the problem. Try setting these two with the same address. If you direct the DISPLAY to be localhost, then the incoming connection will be from 127.0.0.1 , not the 125.19.55.169 address you have allowed.

Can you have another go?

Robin