NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: resource limits and login.conf



gdt%lexort.com@localhost (Greg Troxel) writes:

>I read login.conf(5) and added

>  daemon:\
>          :ignorenologin:\
>          :datasize=4000M:\
>          :openfiles=1024:\
>          :maxproc=1024:\
>          :maxthread=1024:\

>  default|regular user:\
>          :datasize=16000M:\
>          :openfiles=8000:\
>          :maxproc=2048:\
>          :maxthread=8192:\


Such entries work for me. I can see two issues:

There is no inheritance. Settings for 'default' apply
to users that don't have a class configured, they
don't provide some default for other classes.

The settings are subject to other limits. For example,
"maxproc=2048" is still truncated to kern.maxproc.


>login.conf(5) mentions cap_mkdb in SEE ALSO, but it doesn't say that the
>text version isn't read if the login.conf.db doesn't exist.  But running
>cap_mkdb doesn't seem to help.

I just use the text version.



Home | Main Index | Thread Index | Old Index