Subject: login.conf without default: entry (was Re: Setting a default ulimit for the whole system?)
To: None <netbsd-users@NetBSD.org>
From: Klaus Heinz <k.heinz.mai.sieben@kh-22.de>
List: netbsd-users
Date: 05/10/2007 22:42:33
Jeremy C. Reed wrote:

> For logins (or other programs using login classes), put in /etc/login.conf 
> for default, like:
> 
> default:datasize=256m:

I have never used login.conf before.
After

  $ touch /etc/login.conf

on NetBSD 3.1 I see

  May 10 22:34:35 silence login: default: unknown class

on the console. From reading the man page login.conf(5)

  A special class called
  ``default'' will be used (if it exists) if there is no other match.
                           ^^^^^^^^^^^^^^
I would have expected that a file without a "default:" entry should be
valid.

Simple adding the line

  default:

to login.conf shuts up the complaints.

ciao
     Klaus