On Thu, Mar 03, 2011 at 01:11:22PM +0100, Sebastiaan Breedveld wrote: > > 2) When using the VeNCrypt security type, the ~/.vnc/passwd is not > >> necessary, yet the user is asked to create one. Same when using the > >> securitytype none. The script now checks for the -SecurityType option > >> and checks wether VeNCrypt type or none is specified. (That is, I am in > >> the assumption that the VeNCrypt type does not use the vnc password.) > > You are right, vncserver script shouldn't create passwd file unless > > it is needed. > > > > passwd file is needed only when at least one of those types is > > specified (case insensitive): > > > > VncAuth or TLSVnc or X509Vnc > > > > By default server allows VncAuth and TLSVnc. > > > > Correct approach is: > > 1. if -SecurityTypes parameter is not specified, create .vnc/passwd > > 2. if -SecurityTypes contains at least one of three types specified > > above, create .vnc/passwd > > 3. otherwise don't create .vnc/passwd > > > > Note in 1. and 2. cases you need to pass -rfbauth parameter, otherwise > > Xvnc won't find password file. > > > > With this checks vncserver will create .vnc/passwd only when needed. > > > > > Ok, I was about to get this as well ;) In addition to the above: > 4. do not create .vnc/passwd if -Password, -PasswordFile or -rfbauth is > already given.
Right you are, I forgot this case ;) > Thinking about -Password: is there any sane environment where this is > still used? If I remember correctly someone uses this option for one-time passwords in his TigerVNC server deployment. Regards, Adam -- Adam Tkac, Red Hat, Inc. ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel