Vineet Sinha wrote:
> Hi,
>
> I have user who when start xclock from his id it comes up fine. But when he
> switch as oracle user and try to start Xclock. it fails saying Can't open
> display.
>
> There is also small script he executes after he switch as oracle user:-
>
> #!/bin/bash
> /usr/openwin/bin/xauth add
> DISPLAY=localhost:11.0
> export DISPLAY
The xauth command seems cut off - it should be adding the magic cookie for the
display from the xauth of the user logged into the display. Also, hardcoding
:11.0 seems weird - is that a special server or is the user assuming he'll
always be the second ssh tunnel opened or second Sun Ray server started?
Alternatively, if that's an actual local display, not an ssh tunnnel, then
before su'ing he could run
xhost +si:localuser:oracle
(replace "oracle" with the actual username being su'ed to for the "oracle user")
--
-Alan Coopersmith- [email protected]
Oracle Solaris Platform Engineering: X Window System
_______________________________________________
xwin-discuss mailing list
[email protected]
List info: http://mail.opensolaris.org/mailman/listinfo/xwin-discuss
Unsubscribe: http://mail.opensolaris.org/mailman/options/xwin-discuss