Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 1999 08:43:56 -0500 (EST)
From:      Bob K <melange@yip.org>
To:        freebsd-stable@freebsd.org
Subject:   24-character usernames?
Message-ID:  <Pine.BSF.4.05.9903220820440.283-100000@pi.yip.org>

next in thread | raw e-mail | index | archive | help
I recently wanted to try out 24-character usernames on my system.  So,
following the man page for adduser, I changed UT_NAMESIZE in
/usr/include/utmp.h to 24 from the default of 16.  I then changed
MAXLOGNAME in /usr/include/sys/param.h to 25, as per the comments in both
utmp.h and param.h.  I then made buildworld && make installworld (-j4 -O
-pipe only) and a new kernel (-O -pipe), and then built the various ports
that would need it.

Well, adduser still would complain about usernames more than 16
characters.  As an added bonus, I began seeing odd things with w and who,
such as:

 8:32AM  up 21:32, 2 users, load averages: 1.40, 1.07, 0.63
USER             TTY      FROM              LOGIN@  IDLE WHAT
nistor           p3       snickers:ttyp6:S 31Dec69  9:03 -tcsh (tcsh)
melange          p6       ttyp4            31Dec69     - screen -r
(screen-3.7.6)
pi# who
nistor           ttyp3   Dec 31 22:25   (snickers:ttyp6:S)
melange          ttyp6   Dec 31 19:00   (ttyp4)
pi# 

Note a) the login date, and b) how user nistor is now logged in from
snickers:ttyp6:S rather than snickers.org.  I've also seen at the top of
the output things such as w://ttyp4:S.0: no such file or directory (but
this only happens once in a while).

Sources were originally from March 12th.  I cvsupped on March 18th and
made world again to see if it was just a temporary bug.  Same deal
(although when I made installworld, it did clobber the changes to utmp.h
and sys/param.h).  Has anyone else seen this?  Is this just pilot error?
It's an SMP system, although I'd be extremely suprised if that made a
difference with this.  If anyone wants more info, just ask and ye shall
receive...




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9903220820440.283-100000>