Date: Mon, 19 Aug 2002 13:56:49 +0100 From: Daniel Bye <dan@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: login classes and setenv Message-ID: <20020819125649.GB51236@catflap.home.slightlystrange.org> In-Reply-To: <20020819022501.25575.qmail@web12803.mail.yahoo.com> References: <20020819022501.25575.qmail@web12803.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020819125649.GB51236>