From owner-freebsd-stable Mon Sep 24 8:40:52 2001 Delivered-To: freebsd-stable@freebsd.org Received: from hotmail.com (oe37.law9.hotmail.com [64.4.8.94]) by hub.freebsd.org (Postfix) with ESMTP id BD1A037B417 for ; Mon, 24 Sep 2001 08:40:48 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 24 Sep 2001 08:40:48 -0700 X-Originating-IP: [194.185.80.200] From: "Andrea Di Giovanni" To: Subject: login class Date: Mon, 24 Sep 2001 17:44:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-OriginalArrivalTime: 24 Sep 2001 15:40:48.0650 (UTC) FILETIME=[4883AEA0:01C1450F] Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have some trouble with login.conf, I set up a 'restricted' profile as follows: <--->8---> restricted:\ :passwd_format=blf:\ :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:\ :cputime=1h30m:\ :datasize=8m:\ :stacksize=2m:\ :memorylocked=4m:\ :memoryuse=8m:\ :filesize=8m:\ :coredumpsize=8m:\ :openfiles=24:\ :maxproc=32:\ :priority=0:\ :requirehome:\ :umask=002:\ :sessionlimit=3:\ :sessiontime=2h:\ :idletime=15m:\ :gracetime=3m:\ :passwordtime=60d:\ :minpasswordlen=8:\ :warnpassword=2w:\ :warntime=5m:\ :mixpasswordcase: # :ignoretime@: <--->8---> then I added a 'testuser' to my system with this login class. This is the output of ulimit -a command for 'testuser': core file size (blocks) 8192 data seg size (kbytes) 8192 file size (blocks) 8192 max locked memory (kbytes) 4096 max memory size (kbytes) 8192 open files 24 pipe size (512 bytes) 1 stack size (kbytes) 2048 cpu time (seconds) 5400 max user processes 32 virtual memory (kbytes) 10240 ... also passwd_format, minpasswordlen and mixpasswordcase works fine... but others directives like :sessionlimit=3:\ :sessiontime=2h:\ :idletime=15m:\ :warntime=5m:\ doesn't work at all! Infact I was able to open more then 3 ssh concurrent session for 'testuser' In these session I didn't send any keystrokes for up two hours and the session was still active without any warn message! Where is my mistake? Tanks Andrea Di Giovanni To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message