Subject: bin/34150: login class limits are always those of 'default' class
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <MarkoSchuetz@web.de>
List: netbsd-bugs
Date: 08/07/2006 03:30:01
>Number:         34150
>Category:       bin
>Synopsis:       login class limits are always those of 'default' class
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 07 03:30:00 +0000 2006
>Originator:     Marko Schütz
>Release:        NetBSD 3.0 i386
>Organization:
individual
>Environment:
NetBSD fjpad.usp.ac.fj 3.0 NetBSD 3.0 (FJPAD) #9: Thu Aug  3 12:29:29 FJT 2006  marko@fjpad.usp.ac.fj:/usr/src/sys/arch/i386/compile/FJPAD i386

>Description:
I have added a login class 'biguser' allowing a datasize of up to 2048m, but when I `su -c` to that class I still only get the datasize limit of the default class.
>How-To-Repeat:
fjpad% more /etc/login.conf
default|everyday user:\
        :datasize=1024m:

biguser|User requiring large memory:\
        :datasize=2048m:

fjpad% su
Password:
# zsh
fjpad# limit datasize
datasize        1024MB
fjpad# limit -h datasize
datasize        1024MB
fjpad# limit -h datasize 2048m
fjpad# limit -h datasize
datasize        2048MB
fjpad# limit datasize 2048m
fjpad# limit datasize
datasize        2048MB
fjpad# su -c biguser marko
fjpad% limit -h datasize
datasize        1024MB
fjpad% limit datasize
datasize        1024MB

>Fix: