From owner-freebsd-questions Thu Dec 12 22:56:24 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 7552B37B404 for ; Thu, 12 Dec 2002 22:56:22 -0800 (PST) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFBA543EC2 for ; Thu, 12 Dec 2002 22:56:16 -0800 (PST) (envelope-from fbsd-q@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.6/8.12.6) with ESMTP id gBD6upmW010196; Fri, 13 Dec 2002 07:56:51 +0100 (CET) (envelope-from stable@ei.bzerk.org) Received: (from stable@localhost) by ei.bzerk.org (8.12.6/8.12.6/Submit) id gBD6upLF010195; Fri, 13 Dec 2002 07:56:51 +0100 (CET) Date: Fri, 13 Dec 2002 07:56:51 +0100 From: Ruben de Groot To: "Brian T. Schellenberger" Cc: Brian , Daniel HARTMANN , Questions FREEBSD Subject: Re: VNC Message-ID: <20021213065651.GA10152@ei.bzerk.org> References: <20021212124239.F80956-100000@entwistle.sonicboom.org> <200212122207.47500.bts@babbleon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212122207.47500.bts@babbleon.org> User-Agent: Mutt/1.4i 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 Thu, Dec 12, 2002 at 10:07:46PM -0500, Brian T. Schellenberger typed: > > > > 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. You can put it in the desired user's crontab like this: @reboot /path/to/startup-command > > > 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. The suid bit is stored in the inode, not in the directory-entry of a hardlink. If you suid the hardlink you also suid the original. The same goes for ownership. > > | > | 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message