X connection from another user over sudo
Hi all. I am the newbiest newbie ever been in linux history. Plese help me. I am unable to run a program from user oracle.
How can i grant newbie to run X from user oracle? [newbie@server]sudo -s [root@server]su - oracle [oracle@server]cd /home/oracle/distr/afg_mk/ [oracle@server]./runInstaller Got this : X connection to localhost:11.0 broken (explicit kill or server shutdown). P.S. I don't know root and oracle password. But have unlimited sudo:) |
help needed...
|
you need to set the DISPLAY environment variable. Do something like this:
[newbie@server]echo $DISPLAY This should give an output like: localhost:0.0 Then change the following line [oracle@server]./runInstaller to the following: [oracle@server]DISPLAY=localhost:0.0 ./runInstaller make sure that if your DISPLAY variable is different to what I wrote above, you enter the correct value instead of "localhost:0.0" Cheers |
All times are GMT -5. The time now is 11:49 AM. |