Networking :: Realvnc passwd - How to?



Hello everybody,
i have installt DSl 1.5 to my HD and want to work on it using vnc4x-1.4.6.dsl . That works so far, but how can i manage to get ask for my password. I edited vncpasswd but i can simply connect to the vncserver without being asked for pass from my Windows machine. Can somebody please tell me how?

I also have that problem that nearly everybody can get root acces by using sudo su. How can i stop that too?

Sorry, i searched the forum for answers but didn't found much helpfull stuff for these probs. I'm also a bit new to linux.
Thanx
Mo

I believe you need to use the "vncpasswd" command to create the password file.

remove "NOPASSWD" from /etc/sudoers to keep users from automatically gaining root power.  This may break some gui tools that use sudo.

Thanx Mik
that sudo thing works now.

But when i use vncpasswd as root or as dsl user, i get asked for password and for vertify of the password, but when i connect from my windows machine with that realvnc viewer i didn't get asked for an password. is there something more i need to do?

Quote (Monosourround @ Nov. 03 2005,16:11)
Thanx Mik
that sudo thing works now.

But when i use vncpasswd as root or as dsl user, i get asked for password and for vertify of the password, but when i connect from my windows machine with that realvnc viewer i didn't get asked for an password. is there something more i need to do?

look for vnc4x.sh or vnc4x0.sh (depends on what you use) in /usr/local/bin/

by default there is something like

securitytypes=none

in the last row, replace this with:

passwordFile=/home/dsl/.vnc./passwd

(or where you have placed the passwd file for vnc )

if you have no hd install make sure, that the vnc4x.sh and vnc4x0.sh is going through your backup ;-)

all I do is:

sudo passwd dsl

Then I am prompted to enter a new password for the user 'dsl'.

Next Page...
original here.