I am new to this forum. Using server v1.1.8.0 on embedded Windows XP systems where the user has no ability to access to Windows desktop or other programs, only our custom software. Users need to be able to set their own password for ultravnc but should not be able to change other settings. I planned to use the setpasswd.exe utility installed as part of the Ultravnc installation by calling it from our software. The only reference I can find to this utility is on Rudi's update post for v10962: https://forum.ultravnc.net/viewtopic.php?f=64&t=29179
create random password if no passwd exist, can also be used to set the passwords.
setpasswd.exe [full_pass] [viewonly_pass]
When I call this utility from the command-line it modifies the ultravnc.ini setting file but password hash string is not the same as if set same password from ultravnc server or settings utility. For exampleI assume that
setpasswd.exe HELLO GOODBYE
should set full password to "HELLO" and viewonly password to "GOODBYE". But it sets incorrect string in ini file for "passwd" and does not set a value for "passwd2".
I have tried every variation on command syntax I can think of with no luck. Help me please...
Celebrating the 22th anniversary of the UltraVNC: https://forum.uvnc.com/viewtopic.php?t=38031
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
v1.1.8.0 password utility not working as expected
- Rudi De Vos
- Admin & Developer
- Posts: 6890
- Joined: 2004-04-23 10:21
- Contact:
Re: v1.1.8.0 password utility not working as expected
Works only with
setpasswd.exe [full_pass]
[viewonly_pass] is disabled in the source and i can't remeber why
Uploaded a version with both enabled
http://www.uvnc.eu/download/1180/setpasswd.zip
setpasswd.exe [full_pass]
[viewonly_pass] is disabled in the source and i can't remeber why

Uploaded a version with both enabled
http://www.uvnc.eu/download/1180/setpasswd.zip
Re: v1.1.8.0 password utility not working as expected
Thanks for response Rudi - good start. However running setpasswd.exe from the command line still gives different hash string than using Settings utility. For example:
From Settings utility or winvnc.exe, setting full pass = HELLO and view-only pass = GOODBYE writes the following entries in ultravnc.ini"
passwd=48454C4C4F00000074
passwd2=546E484A7578557208
But running "setpasswd.exe HELLO GOODBYE" from the command line gives:
passwd=48454C4C4F00000074
passwd2=546E484A7578557208
In this case authentication fails with HELLO password.
From Settings utility or winvnc.exe, setting full pass = HELLO and view-only pass = GOODBYE writes the following entries in ultravnc.ini"
passwd=48454C4C4F00000074
passwd2=546E484A7578557208
But running "setpasswd.exe HELLO GOODBYE" from the command line gives:
passwd=48454C4C4F00000074
passwd2=546E484A7578557208
In this case authentication fails with HELLO password.
- Rudi De Vos
- Admin & Developer
- Posts: 6890
- Joined: 2004-04-23 10:21
- Contact:
Re: v1.1.8.0 password utility not working as expected
reuploaded, passwd encryption was off
-
- Posts: 2
- Joined: 2013-04-25 13:15
Re: v1.1.8.0 password utility not working as expected
Dear Rudi, first of all thanks a lot for the great tool UltraVNC which I use for years now on hundreds of PCs...
Unfortunately the actual password.exe (date 25.04.2013) is not part of the actual download of the UltraVNC_1_8_X64_Setup.exe from v1.1.8.0. So you are not able to change password correctly.
Also it's necessary to restart uvnc_service to activate the new password when changing it with "Edit Settings".
I just spent some to find out und verify it twice.
Best regards from Germany
Ralf
Unfortunately the actual password.exe (date 25.04.2013) is not part of the actual download of the UltraVNC_1_8_X64_Setup.exe from v1.1.8.0. So you are not able to change password correctly.
Also it's necessary to restart uvnc_service to activate the new password when changing it with "Edit Settings".
I just spent some to find out und verify it twice.
Best regards from Germany
Ralf
- Rudi De Vos
- Admin & Developer
- Posts: 6890
- Joined: 2004-04-23 10:21
- Contact:
Re: v1.1.8.0 password utility not working as expected
The password is saved in the ultravnc.ini file in the same folder as winvnc.exe.
*Desktop user need to have permission to write to this file
*On XP, you need to uncheck [_]protect else you can't save to the file
*It doesn't work if the desktop user can not be impersonated by the service ( domain admin)
If you want to update multiple PC's, you make create a ultravnc.ini file on a local pc
and distribute it to the other pc's. Next time winvnc is started the new settings are used.
No need to reinstall anything, all setting including passwd are in a single file.
If you remove the file, first run winvnc recreate a default file.
uvnc_settings.exe is a ultravnc.ini editor.
*Desktop user need to have permission to write to this file
*On XP, you need to uncheck [_]protect else you can't save to the file
*It doesn't work if the desktop user can not be impersonated by the service ( domain admin)
If you want to update multiple PC's, you make create a ultravnc.ini file on a local pc
and distribute it to the other pc's. Next time winvnc is started the new settings are used.
No need to reinstall anything, all setting including passwd are in a single file.
If you remove the file, first run winvnc recreate a default file.
uvnc_settings.exe is a ultravnc.ini editor.