Hi Douglas,

Douglas Held wrote on Sat, Jan 01, 2011 at 02:54:48PM +0000:

> I've installed OpenBSD 4.7, i386 in a VMWare virtual machine with 3GB RAM.
> 
> I find I can't allocate more than 1GB to any process as root.  ksh
> ulimit builtin provides me this when I try to set the hard limit
> unlimited.
> 
> Even so, when I set the hard and soft limits for, say, 'ulimit -d' as
> root and then su my application user, the specified limit is
> unattainable.
> 
> # ulimit -d
> 1048576
> # ulimit -Hd unlimited
> # ulimit -d unlimited
> # ulimit -d
> 1048576
> # su - xyz
> $ ulimit -d
> 524288
> $ ulimit -d 1024575
> ksh: ulimit: exceeds allowable limit
> 
> Other operating systems have a configuration such as
> /etc/security/limits.conf.  What is the equivalent in OpenBSD?

Have a look at login.conf(5).

Of course, that will only work as far up as supported by your
architecture.

Yours,
  Ingo

Reply via email to