Date: Thu, 6 Jul 2000 11:26:34 -0500 From: Eric Brueggmann <brueggma@ceco.ceco.com> To: freebsd-isp@freebsd.org Cc: freebsd-questions@freebsd.org Subject: accounting - FBSD 4.0-STABLE Message-ID: <20000706112634.A28327@chaos.ceco.com>
next in thread | raw e-mail | index | archive | help
Hello,
rbash-2.04$ uname -a
FreeBSD XXXXXXXXX 4.0-STABLE FreeBSD 4.0-STABLE #0: Wed Jul 5 17:34:13 CDT 2000 root@XXXXXX:/usr/src/sys/compile/BEAST i386
I'm having a little trouble with accounting on FreeBSD 4.0 Stable. I'm getting
everything to work in /etc/login.conf except for sessionlimit. Here is a
little run down of what I did. Maybee this could be the beginnings of a
HOWTO?
1.) Add a line in /etc/rc.conf
snoopie# grep acc /etc/rc.conf
accounting_enable="YES"
2.) Add a user called "test" and put him in a class called "shell"
adduser test
test:don'tworryaboutit:1500:1500:shell:0:0:TEST Person:
(all one line) /home/test:/usr/local/bin/rbash
3.) Edit /etc/login.conf
shell|Shell Account Class:\
:copyright=/etc/COPYRIGHT:\
:accounted:\
:welcome=/etc/motd:\
:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
:path=/bin /usr/bin /usr/games /usr/local/bin /usr/X11R6/bin ~/bin:\
:nologin=/etc/nologin:\
:cputime=unlimited:\
:datasize=5m:\
:stacksize=5m:\
:memorylocked=5m:\
:memoryuse=5m:\
:filesize=50m:\
:coredumpsize=1m:\
:openfiles=10:\
:maxproc=14:\
:sbsize=unlimited:\
:priority=5:\
:umask=022:
:requirehome:\
:refreshtime=2m:\
:idletime=10m:\
:shell=/usr/local/bin/rbash:\
:warntime=1m:\
:sessionlimit=1:
4.) Update the database
cap_mkdb /etc/login.conf
5.) Reboot. And away we go..
6.) Darn it, it dosen't work..
I think it may have something to do with the duration of time between
checks by acc, but I'm not sure. Please let me know if I'm doing something
wrong. Thank you for your time.
Eric Brueggmann
Jr Admin IBM@ComEd
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000706112634.A28327>
