From owner-freebsd-arch Tue Jun 19 22:25:22 2001 Delivered-To: freebsd-arch@freebsd.org Received: from phaidor.thuvia.org (thuvia.demon.co.uk [193.237.34.248]) by hub.freebsd.org (Postfix) with ESMTP id 1C62D37B403; Tue, 19 Jun 2001 22:25:18 -0700 (PDT) (envelope-from mark@thuvia.demon.co.uk) Received: from dotar-sojat.thuvia.org (dotar-sojat.thuvia.org [10.0.0.4]) by phaidor.thuvia.org (8.11.3/8.11.3) with ESMTP id f5K5PRS17240; Wed, 20 Jun 2001 06:25:27 +0100 (BST) (envelope-from mark@dotar-sojat.thuvia.org) Received: (from mark@localhost) by dotar-sojat.thuvia.org (8.11.4/8.11.4) id f5K5P9Y31720; Wed, 20 Jun 2001 06:25:09 +0100 (BST) (envelope-from mark) Date: Wed, 20 Jun 2001 06:25:09 +0100 (BST) From: Mark Valentine Message-Id: <200106200525.f5K5P9Y31720@dotar-sojat.thuvia.org> In-Reply-To: Nik Clayton's message of Jun 19, 7:09pm X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: nik@freebsd.org (Nik Clayton), arch@freebsd.org Subject: Re: [PATCH] Show login(1) how to execute programs at start up Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: nik@freebsd.org (Nik Clayton) > Date: Tue 19 Jun, 2001 > Subject: [PATCH] Show login(1) how to execute programs at start up > * Dropping the code in the standard /usr/share/skel files. I don't believe in /usr/share/skel; the default behaviour should not depend on startup files in a user's home directory. (Too easy to break, next to impossible to upgrade past.) > * Having a different set of skeleton files (or components that are > cat(1)'ed together. Evil^2. > * Putting the functionality in to login.conf. Yes, but policy, not implementation! > Attached is a small diff to login.c to do this. Hacking login(1) doesn't help xdm(1) users. Neither does specifying programs which spit terminal output in login.conf(5). (An xdm(1) user should get the contents of the file specified by the welcome capability displayed in a popup window or something; whatever programs can do this will break if you change the meaning of the welcome capability.) I would probably do this by adding a new boolean login capability "tips" (does this even need any code!?), and have a command line utility interface to getcap(3), then let /etc/profile, /etc/login, Xsession and friends do what they will to implement the policy, e.g. getcap tips && /usr/games/fortunes freebsd-tips Icing on the the cake would be a simple interface for the novice user to edit $HOME/.login.conf to disable/enable tips (among other things). Before login.conf(5) this would probably have beeb done similar to .hushlogin, with a nice simple user interface, e.g. test -f ~/.notips || /usr/games/fortunes freebsd-tips $ touch ~/.notips Cheers, Mark. -- Mark Valentine, Thuvia Labs "Tigers will do ANYTHING for a tuna fish sandwich." Mark Valentine uses "We're kind of stupid that way." *munch* *munch* and endorses FreeBSD -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message