From owner-freebsd-questions Mon Aug 19 7:11: 0 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 9B4EC37B400 for ; Mon, 19 Aug 2002 07:10:57 -0700 (PDT) Received: from web12804.mail.yahoo.com (web12804.mail.yahoo.com [216.136.174.39]) by mx1.FreeBSD.org (Postfix) with SMTP id 3B19243E65 for ; Mon, 19 Aug 2002 07:10:57 -0700 (PDT) (envelope-from zaunere@yahoo.com) Message-ID: <20020819141056.85285.qmail@web12804.mail.yahoo.com> Received: from [128.122.155.151] by web12804.mail.yahoo.com via HTTP; Mon, 19 Aug 2002 07:10:56 PDT Date: Mon, 19 Aug 2002 07:10:56 -0700 (PDT) From: Hans Zaunere Subject: Re: login classes and setenv To: dan@slightlystrange.org Cc: freebsd-questions@freebsd.org In-Reply-To: <20020819125649.GB51236@catflap.home.slightlystrange.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 --- Daniel Bye wrote: > 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 Yeah, I did cap_mkdb /etc/login.conf and as I said root sees the changes. However, regular users never see anything set in /etc/login.conf, even the default FTP_PASSIVE_MODE. Also, before I ran the cap_mkdb /etc/login.conf, /etc/login.conf.db didn't exist. Something seems fishy with all this. Is something broken? Hans > > -- > 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 __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message