At least one user MUST be created in home directory regardless of config settings
I am working on setting up KasmVNC in containers with networked home directories (so multiple running containers using the same home)
When modifying /etc/kasmvnc/kasmvnc.yaml - I was attempting to override the password file location. However the script was still attempting to generate a user when running vncserver.
https://github.com/kasmtech/KasmVNC/blob/b26ec0bf3df2f1000dac1a4471ccbe5c7e9ed47e/unix/vncserver#L2570 is called from https://github.com/kasmtech/KasmVNC/blob/b26ec0bf3df2f1000dac1a4471ccbe5c7e9ed47e/unix/vncserver#L2577
but the variable is hardcoded to ~/.kasmpasswd https://github.com/kasmtech/KasmVNC/blob/b26ec0bf3df2f1000dac1a4471ccbe5c7e9ed47e/unix/vncserver#L1173
A temporary solution is to: echo "donotdelete::wo" > ~/.kasmpasswd
The long term solution would be to load the 'correct' value eg ConfigValue('server.advanced.kasm_password_file') but I'm not sure if that's the correct solution.
Thank you for reporting the issue, I have put in an internal ticket for this issue.