From owner-freebsd-questions Thu Dec 12 19: 8: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D24BD37B401 for ; Thu, 12 Dec 2002 19:08:07 -0800 (PST) Received: from ncsmtp03.ogw.rr.com (ncsmtp03.ogw.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA85943ED1 for ; Thu, 12 Dec 2002 19:07:56 -0800 (PST) (envelope-from bts@fake.com) Received: from mail6.nc.rr.com (fe6 [24.93.67.53]) by ncsmtp03.ogw.rr.com (8.12.5/8.12.2) with ESMTP id gBD37Jih025299; Thu, 12 Dec 2002 22:07:21 -0500 (EST) Received: from this.is.fake.com ([24.74.172.157]) by mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Thu, 12 Dec 2002 22:08:06 -0500 Received: by this.is.fake.com (Postfix, from userid 111) id CD0F0BB33; Thu, 12 Dec 2002 22:07:47 -0500 (EST) Content-Type: text/plain; charset="iso-8859-1" From: "Brian T. Schellenberger" To: Brian , Daniel HARTMANN Subject: Re: VNC Date: Thu, 12 Dec 2002 22:07:46 -0500 User-Agent: KMail/1.4.2 Cc: Questions FREEBSD References: <20021212124239.F80956-100000@entwistle.sonicboom.org> In-Reply-To: <20021212124239.F80956-100000@entwistle.sonicboom.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200212122207.47500.bts@babbleon.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday 12 December 2002 03:45 pm, Brian wrote: | getting vnc to start at boot is tricky, since you want it to start as | some user, rather than as root. A solution I've been thinking of is | looking at the output os ps auxw, grepping for Xvnc owned by the | desired user, if its there exit, if not run vncserver as the user in | question. Putting it in cron with a /8 to check every 8 minutes | seems a good idea. My *guess* is that you would always want the server to start as the *same* user, if you want it to start at boot. In that case, it's quite simple, at least in theory (meaning, I haven't done this). If that is the only user who will *ever* want to own the server, then just make that user the owner of vnc and set the suid bit. If you want to keep the "default" vnc server with the usual owner (root?), then just create a hardlink used for the startup command and suid *that* as above. | | Bri | | On Thu, 12 Dec 2002, Daniel HARTMANN wrote: | > Bonjour, | > | > J'utilise vnc vers ma machine Freebsd. | > | > Mais comment démarrer "vncserver" automatiquement au boot sans | > taper la commande ?? | > | > Merci | > | > | > | > | > | > Dany_H ;-) | | To Unsubscribe: send mail to majordomo@FreeBSD.org | with "unsubscribe freebsd-questions" in the body of the message -- Brian, the man from Babble-On . . . . bts@babbleon.org (personal) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message