Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2002 14:18:26 -0700 (PDT)
From:      Hans Zaunere <zaunere@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: login classes and setenv - SOLVED
Message-ID:  <20020819211826.20149.qmail@web12801.mail.yahoo.com>
In-Reply-To: <20020819141056.85285.qmail@web12804.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Well I figured out the gotcha here:  logins via ssh don't call login. 
However, when I set the sshd_config directive to UseLogin yes, there
seems to be complications with UsePrivSeperation.

Any tips on this?

Hans


--- Hans Zaunere <zaunere@yahoo.com> wrote:
> 
> --- Daniel Bye <dan@slightlystrange.org> 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


__________________________________________________
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020819211826.20149.qmail>