From owner-freebsd-questions Mon Aug 19 5:57: 7 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 91A2937B411 for ; Mon, 19 Aug 2002 05:56:58 -0700 (PDT) Received: from catflap.home.slightlystrange.org (host217-39-91-62.in-addr.btopenworld.com [217.39.91.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB6E643E6A for ; Mon, 19 Aug 2002 05:56:56 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 17gm5R-000DSN-00 for freebsd-questions@freebsd.org; Mon, 19 Aug 2002 13:56:49 +0100 Date: Mon, 19 Aug 2002 13:56:49 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: login classes and setenv Message-ID: <20020819125649.GB51236@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: <20020819022501.25575.qmail@web12803.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020819022501.25575.qmail@web12803.mail.yahoo.com> User-Agent: Mutt/1.4i X-Scanner: exiscan *17gm5R-000DSN-00*sLNPq5D25AI* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) 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 Sun, Aug 18, 2002 at 07:25:01PM -0700, Hans Zaunere wrote: > > I have edited the default login class in /etc/login.conf to include my > own setenv. > > This: > > :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\ > > became: > > :setenv=MYVAR=myvalue,MAIL=/var/mail$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\ > > Now when root logs in, MYVAR is set to myvalue. However when any other > user logs in (which are all set to the default class, by way of not > having one specified; same as root) no variables are set. Not even the > FTP_PASSIVE_MODE variable gets set in the regular users. > > Any ideas? Did you do cap_mkdb /etc/login.conf after editing the config file? I have also edited the default setenv line, and it works fine. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message