LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-29-2018, 08:38 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Rep: Reputation: 177Reputation: 177
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.
 
Old 01-30-2018, 12:21 PM   #2
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Original Poster
Rep: Reputation: 177Reputation: 177
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?

Last edited by mfoley; 01-31-2018 at 12:41 AM.
 
  


Reply

Tags
authentication, x11vnc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
x11vnc error: Only root will have read permission for the file, and so x11vnc must be yogesh_attarde Linux - Software 7 09-23-2014 06:30 AM
running set | less as user reveals root password trillobyte Slackware 7 03-27-2011 12:05 PM
running x11vnc on xvfb PaladinOfKaos Linux - Server 1 03-09-2009 10:27 PM
How to set root password on Suse Linux (not asked for it at install time) trashcan Linux - Software 5 12-18-2006 12:33 PM
set password to boot lilo ? hitesh_linux Linux - General 2 02-22-2002 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration