Access VNC desktop of user A from user B

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Mon Dec 10 16:13:57 UTC 2007


On Sun, Dec 09, 2007 at 04:54:22PM -0500, JoeHill wrote:
> I've got two VNC desktops running on my Ubuntu machine (waiting for Boxing Day
> to get another display), under two different users. It is a simple matter to
> access either one from a terminal, ie. I can su userb, then run vncviewer. What
> I would like to do though is add a launcher or menu entry to do the same with
> one click, and I'm not sure how to do it.
> 
> I use this to launch vncviewer:
> 
> vncviewer magda:2 -passwd /home/magda/.vnc/passwd
> 
> ...but of course if I try this without first 'su magda' I get an error that the
> passwd file cannot be read from my account.
> 
> Is there some way to specify in the command a user and pass? Or is there some
> more efficient/elegant method than relying on VNC?

You could make the vnc passwd file readable by a certain group and put
all the users that should have vnc access in that group.

--
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list