Realvnc passwd - How to?


Forum: Networking
Topic: Realvnc passwd - How to?
started by: Monosourround

Posted by Monosourround on Nov. 03 2005,10:20
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

Posted by mikshaw on Nov. 03 2005,15:32
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.

Posted by Monosourround on Nov. 03 2005,21: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?

Posted by dexdex on Nov. 21 2005,21:27
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 ;-)

Posted by dmizzel on Nov. 22 2005,09:05
all I do is:

sudo passwd dsl

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

Posted by Monosourround on Nov. 22 2005,09:49
Thanx dexdex,
i will try that.

Mo

Posted by dexdex on Nov. 23 2005,13:27
ups, there was a "dot" to much ;-)

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

should be

passwordFile=/home/dsl/.vnc/passwd  

as already written, the path should be the path to your passwd file you want to use and of course the passwd should have a password ;-). If not already set use console with "vncpasswd" and the password will be set

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.