*BSD News Article 54007


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!swing.iinet.net.au!news.uoregon.edu!cuhknntp!hpg30a.csc.cuhk.hk!agate!news.mindlink.net!van-bc!ddsw1!news.mcs.net!not-for-mail
From: les@MCS.COM (Leslie Mikesell)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: xtacacs and multiple user logins problem
Date: 31 Oct 1995 23:32:35 -0600
Organization: /usr/lib/news/organi[sz]ation
Lines: 44
Message-ID: <4770pj$389@Venus.mcs.com>
References: <472q48$ma6@cronkite.seas.gwu.edu>
NNTP-Posting-Host: venus.mcs.com

In article <472q48$ma6@cronkite.seas.gwu.edu>,
hisham Alqasrawi  <hisham@worlddata.com> wrote:

>I was having a problem  running xtacacsd v3.4 on BSDI 2.0 . The xtacacsd
>stops responding after the first login from the Cisco 2511 router
>with 10.3 software.  Also, the xtacacs_utmp file was showing huge size
> 
>-rw-rw-r--  1 root  wheel  4294967332 Jun 30 23:41 /var/log/xtacacs_utmp
> 
>   I was able to solve the problem by commenting out any reference for 
>writing to
>utmp file, this is working OK now.

A quote from a posting by Chris Torek some time ago:

|Because the type of `sizeof' is implementation-defined, code that
|intends to seek backwards over a record it just read should say:
|
|	lseek(fd, -(off_t)sizeof record, SEEK_CUR);
|
|rather than:
|
|	lseek(fd, (off_t)-sizeof record, SEEK_CUR);
|
|Such code will work anywhere the basic idea works, regardless of
|the relative sizes and types of `off_t' and `size_t'.

That will fix up the utmp problem.

>However,  I need to limit number of 
>simultaneous
>logins for users ( numlogin = 1 in the xtacacs_conf file).  From what I 
>understand is
>that this functionality in xtacacs users the utmp file.
> 
>Has anyone been able to run xtacacs v3.4 on BSDI 2.0 and limit number of 
>logins to 1?

This will probably work after you fix the utmp file writes.  I use
a different kind of terminal server that doesn't do all the fancy
stuff.

Les Mikesell
  les@mcs.com