I'm trying to use x11vnc to allow users to remote control certain computers. This works fine in general, but there is one aspect I have trouble implementing. I want to restrict access to a specific user account, but the user that the X11 session belongs to is a different one.
So the situation is:
- User A is logged in at the computer
- User B starts x11vnc manually from the shell
- VNC-client V connects from somewhere to it
The problem is that I can only start x11vnc as root or as the currently logged in user, it doesn't work as any other user. Is there any way to allow a specific user to access my X11 session?