LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Cannot set x11vnc password when running at boot time (https://www.linuxquestions.org/questions/linux-server-73/cannot-set-x11vnc-password-when-running-at-boot-time-4175622664/)

mfoley 01-29-2018 08:38 PM

Cannot set x11vnc password when running at boot time
 
I am using x11vnc server on Slackware64 14.2 and KDE. I have it configured to run at boot time via the following command in /etc/rc.d/rc.local:
Code:

/usr/local/bin/x11vnc -auth guess -nopw -loop -repeat -nomodtweak -shared -forever -o /var/log/x11vnc.log &
As you can see, I'm specifying -nopw. It does not work if I specify -usepw or '-passwdfile /root/.vnc/passwd', even if I make the .vnc/passwd path readable by all.

If, instead of running x11vnc at boot time, I run it from root at the command line, then I can specify -usepw and it works fine. So, apparently rc.local isn't strictly running as root or some such thing.

Does anyone have any experience with this? Running x11vnc at boot time and able to do some kind of authentication?

I'm also open to other VNC servers that can be started at boot time and "loop" (restart) when the viewer logs out.

mfoley 01-30-2018 12:21 PM

I've done further testing and have confirmed that if I start x11vnc server at boot time from rc.local, as shown in my OP, then -passwdfile and -usepw do not work at all. I always get "password check failed". If, however, I start x11vnc from the command line logged in as root -usepw works fine, -passwdfile /etc/vnc/passwd (and -passwdfile ~/.vnc/passwd) do not.

Later ...

After further reading of the x11vnc man, I've found that that I *can* use -passwdfile from boot if I put the actual password in plain text in the /etc/vnc/passwd file. I can make this file readable only by root. This mechanism acts as an overall workstation password, like with a terminal server. All users who might log onto this workstations will use this same initial password.

While on the x11vnc topic, has anyone been able to use -ssl with x11vnc server?


All times are GMT -5. The time now is 04:07 PM.