From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,64f4de8d2f82025 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-10-02 11:33:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.columbus.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Message-ID: <3D9B3B71.3AD83380@ChironComputing.Com> From: scriptOmatic Reply-To: ScriptOmatic@OpenSysMon.Com X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.18-6mdk i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: login options References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 02 Oct 2002 18:33:58 GMT NNTP-Posting-Host: 204.210.18.244 X-Complaints-To: abuse@rr.com X-Trace: twister.socal.rr.com 1033583638 204.210.18.244 (Wed, 02 Oct 2002 11:33:58 PDT) NNTP-Posting-Date: Wed, 02 Oct 2002 11:33:58 PDT Organization: RoadRunner - West Xref: archiver1.google.com comp.unix.tru64:8771 laredo wrote: > > Hello, > is it possible set the number of session per user? p.e. limit the root login > to 5. And how I can get that when a user log in a system the system register > this login in a log file.? > thank in advance > Cesar Bravo I don't think there is a way to tell the system to limit the number of login's -- this is kind of the reverse direction that UNIX goes in! :-) However, you could write some script and add it to /etc/profile and/or /etc/login that checks the number of logins for a given user, possible working with the output of "last" (see man last). Hope this helps! -- http://ftp.opensysmon.com is a shell script archive site with an opensource system monitoring software package designed for scripts and fully compatible with cron.