Subject: Re: login.conf [was Re: BSD Authentication]
To: None <netbsd-help@netbsd.org>
From: Gary Thorpe <gathorpe79@yahoo.com>
List: netbsd-help
Date: 09/10/2003 14:21:52
 --- Eric Haszlakiewicz <erh@nimenees.com> wrote: > On Wed, Sep 10,
2003 at 06:45:29AM +0900, Jun-ichiro itojun Hagino
> wrote:
> > > > I tried to use login.conf as described in its man page on
> NetBSD, but
> > > > it didn't have any effect. Somewhere in this thread it was
> mentioned
> > > > that BSD auth is the underlying support for login.conf. If so,
> what
> > > > exactly is login.conf doing in NetBSD now since it seems
> > > > non-functional? If it does work, how do I enable it?
> > 
> > 	currently non-functional, i would say.
> 	I don't know about 1.6, but it works fine for me under -current.
> What do you have in your login.conf?
> 
> eric

login.conf:
# Define classes: 
# Super users - root, toor, (root priviledged).
# Psuedo users - daemons, uucp, nobody (unpriviledged user).
# Regular users - Joe Blow user (includes me), this is also the
default.

superuser|Users with root priviledges:\
	ignorenologin:\
	login-backoff=2\
	login-retries=5

psuedouser|Psuedo users who do not log in:\
	hushlogin:\
	nologin=/var/run/nologin:

user|default|Normal users:
	nologin=/var/run/nologin:\
	path=/bin /usr/bin /usr/pkg/bin /usr/local/bin:\
	requirehome:
What I was trying to do is change where shutdown puts 'nologin' because
/ is mounted read-only and I wanted it to move to /var/run instead of
/etc. From other posts it seems other things work with login.conf, but
this particular feature doesn't seem to. I have used cap_mkdb, but what
should the resulting file be named and where should it be (I think the
file is /etc/login.conf.db for me)? Does this feature work in 1.6.x
and/or current?

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca