login.conf problems
Lowell Gilbert
freebsd-questions-local at be-well.ilk.org
Fri Jan 14 11:32:45 PST 2005
Don't top-post, please.
"Static" <static at tatersalad.net> writes:
>
> ----- Original Message -----
> From: "Lowell Gilbert" <freebsd-questions-local at be-well.ilk.org>
> To: "Static" <static at tatersalad.net>
> Cc: <freebsd-questions at freebsd.org>
> Sent: Thursday, January 13, 2005 4:33 PM
> Subject: Re: login.conf problems
>
>
> > "Static" <static at 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)?
> >
>
> Resource limits (current):
> cputime infinity secs
> filesize infinity kb
> datasize 524288 kb
> stacksize 65536 kb
> coredumpsize infinity kb
> memoryuse infinity kb
> memorylocked infinity kb
> maxprocesses 867
> openfiles 1735
> sbsize infinity bytes
> vmemoryuse infinity kb
> -
> I used adduser and just placed ircd as the user class
And no diagnostic messages were printed when you ran cap_mkdb?
Use vipw(8) to check the login database; make sure "ircd" is the
fifth field in the user's entry. And when the user logs in, make sure
there are no errors in the logs or terminal about trouble with the
capability entry.
More information about the freebsd-questions
mailing list