Subject: Re: limits question
To: Jeremy C. Reed <reed@reedmedia.net>
From: Marko =?ISO-8859-1?Q?Sch=FCtz?= <schutz_m@usp.ac.fj>
List: netbsd-help
Date: 08/04/2006 10:15:15
--pgp-sign-Multipart_Fri_Aug__4_10:15:14_2006-1
Content-Type: text/plain; charset=US-ASCII
At Wed, 2 Aug 2006 23:49:08 -0500 (CDT),
Jeremy C Reed wrote:
>
> > biguser|User requiring more memory:\
> > :datasize=2048m:
> >
> > then I su'ed to root and did
> >
> > su -c biguser marko
> >
> > but the hard limit when I'm marko is set to 1024m
>
> I just tested this on NetBSD -current using su -c and it worked correctly
> for me. The soft and hard datasize were 2147483648. (I tested with and
> without my class defined in master.passwd.)
>
> What version of NetBSD are you using?
3.0
> Can you show output of your testing?
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
I also changed the class entry in /etc/passwd and did a `su marko`:
same effect.
Thanks,
Marko
--pgp-sign-Multipart_Fri_Aug__4_10:15:14_2006-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)
iD8DBQBE0nVzD04PgKGR9CoRApHwAKCkgKSZxcbb7BcIZi5qtDFXbVgq5wCfc7qo
mPFIoAmTNS8Rmm8Jd20hryI=
=+3Gi
-----END PGP SIGNATURE-----
--pgp-sign-Multipart_Fri_Aug__4_10:15:14_2006-1--