Perhaps this is just how astroberry is configured as to noVNC, but I can't figure out how to setup noVNC to change to a user account that has been configured "viewonly" in the vnc server.
It's working with a regular VNC client. I have the vnc server standard user (which I can't modify or remove), an admin user which can control the screen, and a viewonly user that can only view.
However the username seems to be embedded in the noVNC process somehow as it doesn't prompt for username (password only) and is stuck on the standard username.
I have a novnc.service file in /var/www/novnc, that has a User parameter, but changing that doesn't seem to change any behviour (after reboot and force refreshing web pages).
[Unit]
Description="noVNC"
After=multi-user.target vncserver-x11-serviced.service
[Service]
User=astroberry
ExecStart=/usr/bin/websockify --log-file=/var/log/astroberry/novnc.log --web=/var/www/novnc/ 8080 localhost:5900
ExecStop=/usr/bin/pkill websockify
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target
I would be happy if the noVNC was always viewonly, and the admin account could use a regular VNC client.
I have hacked the html in /var/www/novnc/index.html to have the niew_only checkbox checked, but that only works on touch devices AND the user can uncheck it to gain full control.
Suggestions?