*BSD News Article 81081


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!serv.hinet.net!news.cc.nctu.edu.tw!spring.edu.tw!news.uoregon.edu!arclight.uoregon.edu!news-peer.gsl.net!news.gsl.net!news.mathworks.com!uunet!news-in2.uu.net!metro.atlanta.com!news.pcslink.com!ryan
From: ryan@pcslink.com (Ryan Mooney)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Differences in wtmp file format between FBSD and BSDI
Date: Sat, 19 Oct 96 04:49:17 GMT
Organization: Phoenix Computer Specialists
Lines: 33
Message-ID: <549mfp$6fi@news.pcslink.com>
References: <53rl7h$jpo@nntp.igs.net> <543n36$p67@newsbr.eunet.fr> <547lk2$830@innocence.interface-business.de>
NNTP-Posting-Host: ryan.pcslink.com
X-Newsreader: News Xpress 2.0 Beta #2


>I've heard that BSD/OS allows for usernames longer than the classic 8
>characters.  If this is true, there's your difference between the wtmp
>formats.  UT_NAMESIZE is the interesting constant.

BSDI has 
 #define UT_NAMESIZE     16

Has anyone done this for FreeBSD?   Is it planned?  I have a couple BSDI 
boxes that I'd like to move to FreeBSD (older BSDI version, don't want to
pay to upgrade),  but a lot of the users have > 8 character user names...
This could be a problem (I really don't want to re-compile everything
that depends on utmp.h, and then find some hard coded strncpy(bar, foo, 8)
That makes my life miserable...  I would also rather not tell the users that 
thier login has suddenly changed :(  I suppose I could take a look and see
what all uses utmp.h and see how hard the change would be.... for a global
system change (ugh).

Interestingly linux  1.2.13 through 2.0.10 have:

#if 1
#define UT_LINESIZE     12
#define UT_NAMESIZE     8
#define UT_HOSTSIZE     16
#else
#define UT_LINESIZE     16
#define UT_NAMESIZE     16
#define UT_HOSTSIZE     256
#endif

like they planed to do it, and then ran into problems... or something.  Makes 
me leery considering how much code linux has stole from *bsd (and more 
recently vice versa).