Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jul 2000 11:36:29 -0500
From:      Eric Brueggmann <brueggma@ceco.ceco.com>
To:        dnelson@emsphone.com
Cc:        freebsd-isp@freebsd.org
Subject:   Re: accounting - FBSD 4.0-STABLE
Message-ID:  <20000707113629.A444@chaos.ceco.com>

next in thread | raw e-mail | index | archive | help

> What doesn't work?  Is /var/account/acct not being touched?  Does
> lastcomm not show the commands?  That's all process accounting does.
>
> If you want to limit how long people can stay logged in, try
> ports/sysutils/idled.
>
> -- 
>        Dan Nelson
>        dnelson@emsphone.com

Hello,

	I apologize, I'm a little confused on what accounting is.  As far
as I can tell, it just accounts for all the CPU time on a per process basis.
I thought accounting was responsible for "sessionlimit" (ie: # of logins
per user) too.  Thank you for clarifying that for me.  I'm still stuck on
my original problem though:  anyone in the class "shell" is able to
login more than once, is there something that I'm missing below?

					Thanks for your help,
					Eric B.


1.)  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

2.)  Edit /etc/login.conf

shell|Shell Account Class:\
        :copyright=/etc/COPYRIGHT:\
        :accounted:\
        :welcome=/etc/motd:\
        :setenv=MAIL=~/.INBOX,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:\
        :sessionlimit=1:\
        :umask=022:\
        :requirehome:\
        :refreshtime=2m:\
        :idletime=10m:\
        :shell=/usr/local/bin/rbash:\
        :warnexpire=7d:\
        :expireperiod=180d:\
        :graceexpire=7d:\
        :autodelete=30d:\
        :gracetime=10m:\
        :warntime=1m:\
        :priority=5:

3.)  Update the database

        cap_mkdb /etc/login.conf

4.)  Reboot.  And away we go..


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?20000707113629.A444>