From owner-freebsd-isp Thu Jul 6 9:28:36 2000 Delivered-To: freebsd-isp@freebsd.org Received: from firewall.ceco.com (firewall.ceco.com [198.29.253.130]) by hub.freebsd.org (Postfix) with SMTP id 5C0AC37C3F8; Thu, 6 Jul 2000 09:28:19 -0700 (PDT) (envelope-from brueggma@ceco.ceco.com) Received: by firewall.ceco.com; id LAA16194; Thu, 6 Jul 2000 11:28:10 -0500 Received: from ceco.ceco.com(130.197.8.140) by firewall.ceco.com via smap (V4.2) id xma013251; Thu, 6 Jul 00 11:27:55 -0500 Received: from chaos.ceco.com (chaos.ceco.com [130.197.113.102]) by ceco.ceco.com (8.8.8+Sun/8.8.8) with ESMTP id LAA00342; Thu, 6 Jul 2000 11:29:27 -0500 (CDT) Received: (from brueggma@localhost) by chaos.ceco.com (8.8.8+Sun/8.8.8) id LAA28333; Thu, 6 Jul 2000 11:26:34 -0500 (CDT) Date: Thu, 6 Jul 2000 11:26:34 -0500 From: Eric Brueggmann To: freebsd-isp@freebsd.org Cc: freebsd-questions@freebsd.org Subject: accounting - FBSD 4.0-STABLE Message-ID: <20000706112634.A28327@chaos.ceco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.2i Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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