From owner-freebsd-hackers Thu Apr 13 20:23:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cytosine.dhs.org (cx272244-a.orng1.occa.home.com [24.1.177.149]) by hub.freebsd.org (Postfix) with ESMTP id 03DD537B57D for ; Thu, 13 Apr 2000 20:23:31 -0700 (PDT) (envelope-from bhishan@cytosine.dhs.org) Received: (from bhishan@localhost) by cytosine.dhs.org (8.10.0/8.10.0) id e3E3NLa31341; Thu, 13 Apr 2000 20:23:21 -0700 (PDT) From: Bhishan Hemrajani Message-Id: <200004140323.e3E3NLa31341@cytosine.dhs.org> Subject: Re: login.conf question In-Reply-To: <002f01bfa5b4$bb3e93c0$6aff04d1@halste07> from James Halstead at "Apr 13, 2000 09:57:02 pm" To: James Halstead Date: Thu, 13 Apr 2000 20:23:21 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alright, a couple things come to mind here. 1. Did you make the database? (# cap_mkdb /etc/login.conf) 2. Did you add the user to the class (# chfn user) (and then put the class name in the class field) 3. If you did do that, login as the user (not su), and type "limit" and give me an output. --bhishan [Internal error while calling pgp, raw data follows] > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hey out there! > This is my first time doing someting like an i am having problems > with one part. The session limit does not seem to be working. My > understanding was that this was a hard limit for the number of > simutanious logins a person may have. I created a test account and > was able to have 6 logins open even though the limit is set to 4. > Also I am curious if i set the idletime and warntime right, and if i > need to have the accounting enabled in order for things to work. > > thanks for any help. > > James > > - ---- begin login.conf ---- > > # login.conf - login class capabilities database. > # After each edit don't forget to run: > # cap_mkdb /etc/login.conf > > #defaults - defaults for all users except root > # NOTE: default gives no recource limits!! > > default:\ > :cputime=unlimited:\ > :filesize=unlimited:\ > :datasize=unlimited:\ > :stacksize=unlimited:\ > :coredumpsize=unlimited:\ > :memoryuse=unlimited:\ > :memorylocked=unlimited:\ > :maxproc=unlimited:\ > :openfiles=unlimited:\ > :manpath=/usr/share/man /usr/local/man:\ > :nologin=/var/run/nologin:\ > :path=~/bin /usr/local/bin /usr/bin /bin:\ > :priority=0:\ > :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\ > :term=vt100:\ > :umask=022:\ > :welcome=/etc/motd:\ > :minpasswordlen=8:\ > :copyright=/etc/COPYRIGHT:\ > :idletime=unlimited:\ > :sessionlimit=unlimited: > > #root - make absolutly sure root can do anything. > root:\ > :ignorenologin:\ > :umask=077:\ > :tc=default: > > #cstudent - limit the recources for c class students. > cstudent:\ > :accounted:\ > :cputime=1h:\ > :filesize=5m:\ > :datasize=10m:\ > :stacksize=10k:\ > :coredumpsize=1m:\ > :memoryuse=10m:\ > :memorylocked=5m:\ > :maxproc=12:\ > :openfiles=20:\ > :requirehome:\ > :umask=077:\ > :sessionlimit=4:\ > :idletime=3h:\ > :warntime=2h45m:\ > :tc=default: > > #cprof - give the prof a little more leeway to work with. > cprof:\ > :cputime=1h30m:\ > :datasize=15m:\ > :stacksize=1m:\ > :coredumpsize=2m:\ > :memoryuse=15m:\ > :memorylocked=10m:\ > :maxproc=20:\ > :openfiles=20:\ > :requirehome:\ > :umask=077:\ > :tc=default: > > #superuser - more powerful accounts, but not root powerful. > superuser:\ > :ignorenologin:\ > :umask=077:\ > :tc=default:\ > > daemon:\ > :tc=default: > > news:\ > :tc=default: > > dialer:\ > :tc=default: > > - ---- end login.conf ---- > - ------------------------------------------------------- > For my public key please visit: > http://www.dreamscape.com/halstead/jh.asc > - ------------------------------------------------------- > > -----BEGIN PGP SIGNATURE----- > Version: PGPfreeware 6.5.1 for non-commercial use > > iQA/AwUBOPZ62SdhQGc59hmGEQIg6gCg2LHCsV7DxykNmA5wfu7cZ+BI0C0AoKeg > CxHDm0zb7FCrBzoTZRv/vIww > =DFqR > -----END PGP SIGNATURE----- > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > [End of raw data] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message