run vnc-server as other user in rc.local
Hi,
When I use the following commands in a bash shell it works but not in rc.local: su jvdbossc (freshly user) vncserver -name Earthling -depth 16 -geometry 1024x768 The meaning of this would be to be able to vnc to a user destkop so I can use evolution email (ximian gnome desktop is running in a vnc session when I start the vnc-server) Red hat 7.3 just stops and says no job control... at boot. When I point to another executable file ./emailvnc and use the same commands the rc.local gets into the ./emailvnc file but nothing seems to happen exept that it changes to user jvdbossc. (the vncserver command seems not to be executing. I changed the ./emailvnc with chown jvdbossc emailvnc nothing seems to work, but i would like to use the desktop as normal user..; Any ideas would be appreciated txxs |
allright, what you need to do is put this in your rc.local file
su - username -c "vncserver" after vncserver, you can add whatever options you want before putting this in your rc.local file, login as username and run vncserver and it will ask for a password, type in the password, then put that line above in your rc.local file |
ok
this suggestion is working!
txs |
All times are GMT -5. The time now is 06:25 PM. |