Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2005 22:51:36 +0000
From:      Chris <chrcoluk@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        Static <static@tatersalad.net>
Subject:   Re: login.conf problems
Message-ID:  <3aaaa3a050113145153a03dbb@mail.gmail.com>
In-Reply-To: <444qhlgdsd.fsf@be-well.ilk.org>
References:  <003101c4f90d$8471d440$9601a8c0@staticbasement> <444qhlgdsd.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I think the problem here is login.conf cannot do things like limit
cpu% it just kills the process when it reaches the cpu time used, also
on limiting processes say if you want to limit a shell user to run 3
bg processes you cant limit to 3 processes in login.conf because it
will break fg processes for things like running make.  In this
scenarion I believe you need some custom type of script to do what you
are looking for.

Chris


On 13 Jan 2005 17:33:22 -0500, Lowell Gilbert
<freebsd-questions-local@be-well.ilk.org> wrote:
> "Static" <static@tatersalad.net> writes:
> 
> > Im trying to add a class that will limit processes and session limits, I added this
> > ircd:\
> >        :tc=default:\
> >        :copyright=/etc/COPYRIGHT:\
> >        :welcome=/etc/motd:\
> >        :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
> >        :path=~/bin /bin /usr/bin /usr/local/bin:\
> >        :manpath=/usr/share/man /usr/local/man:\
> >        :nologin=/var/run/nologin:\
> >        :ftp-chroot:\
> >        :cputime=1h30m:\
> >        :datasize=100M:\
> >        :vmemoryuse=100M:\
> >        :stacksize=2M:\
> >        :memorylocked=4M:\
> >        :memoryuse=8M:\
> >        :filesize=100M:\
> >        :coredumpsize=8M:\
> >        :openfiles=24:\
> >        :maxproc=32:\
> >        :priority=0:\
> >        :requirehome:\
> >        :idletime=30m:\
> >        :sessionlimit=2:\
> >        :umask=002:\
> >        :ignoretime@:\
> > Then I proceed to run "cap_mkdb /etc/login.conf" then I make a user with the login class of ircd, but the session limits dont seem to work, was curious if anyone out there knew how to fix that
> 
> Which ones don't work?  [Not all of them are implemented.]
> 
> How did you add the new user?  Did the password database get rebuilt?
> 
> Do the limits appear to be changed in the output of limits(1)?
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3aaaa3a050113145153a03dbb>