KasmVNC icon indicating copy to clipboard operation
KasmVNC copied to clipboard

At least one user MUST be created in home directory regardless of config settings

Open guruevi opened this issue 7 months ago • 1 comments

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.

guruevi avatar May 14 '25 01:05 guruevi

Thank you for reporting the issue, I have put in an internal ticket for this issue.

mmcclaskey avatar May 20 '25 09:05 mmcclaskey