On Mon, Feb 11, 2019 at 12:09:56PM +0100, Riccardo Mottola wrote:
> Hi all,
> 
> I need to compile certain big softare and want to do this as
> user, I am hitting memory limits, e.g:
> 
> ./../js/src/libjs_static.a: could not read symbols: Memory exhausted
> 
> I read in various post and man pages, but am a little confused.
> 
> First thing, I added my user to the "staff" group, which should
> have increased limits, but they are not enough.
> 
> $ groups
> staff wheel wsrc
> 
> Thanks.
> 
> Riccardo
> 

The names in login.conf are classes, this is not related to groups.
You can find in which class your user by looking at the 5th field of
your username in /etc/master.passwd. You can use the following command:

    $ doas awk -F':' '/^YOUR_USER/ { print $5 }' /etc/master.passwd

If it returns "staff" then you should have the correct limits from
/etc/login.conf

Look at /etc/login.conf.db, if you have that file, you must either
recreate it using cap_mkdb or remove it. If the file is not present
then login.conf is read. If the file is present, login.conf is not
read and login.conf.db is used instead, so you need to recreate it.
This is explained in login.conf(5).

Don't forget to delog yourself and relog-in with the account after
changes into login.conf. Limits are applied at login, not when you
call ulimit.

Reply via email to