From owner-freebsd-stable Sat Sep 20 13:07:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA24556 for stable-outgoing; Sat, 20 Sep 1997 13:07:03 -0700 (PDT) Received: from nevis.oss.uswest.net (nevis.oss.uswest.net [204.147.85.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA24548 for ; Sat, 20 Sep 1997 13:07:01 -0700 (PDT) Received: (from greg@localhost) by nevis.oss.uswest.net (8.8.5/8.8.2) id PAA09359; Sat, 20 Sep 1997 15:06:59 -0500 (CDT) From: "Greg Rowe" Message-Id: <9709201506.ZM9357@nevis.oss.uswest.net> Date: Sat, 20 Sep 1997 15:06:59 -0500 In-Reply-To: "Jordan K. Hubbard" "Re: >8 char usernames going into 2.2.5?" (Sep 20, 6:04am) References: <27009.874760684@time.cdrom.com> X-Mailer: Z-Mail (3.2.1 10oct95) To: "Jordan K. Hubbard" , freebsd-stable@FreeBSD.ORG Subject: Re: >8 char usernames going into 2.2.5? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk This seems to work fine (at least on 2.2-STABLE with a "make world") except when I try and use telnet or rlogin with a 16 character username. FTP is OK, and 15 character or less un's are OK (yes I have 17 for MAXLOGNAME). A 16 character username returns: login: setlogin(testtesttesttest): Invalid argument login: setlogin(testtesttesttest): Invalid argument login: setusercontext() failed - exiting login: setusercontext() failed - exiting I only noticed one other person in the mail archives seeing this problem. Is anyone else encountering it ??? Thanks Greg On Sep 20, 6:04am, Jordan K. Hubbard wrote: > Subject: Re: >8 char usernames going into 2.2.5? > > I know the core team is under pressure to to get 2.2.5 out the door, > > Our decision to avoid this change has nothing to do with time > pressures. It has to do with prudence. > > > but would it not be possible for one of the _several_ individuals > > who have done the mods to their system to submit a patch kit to > > the core team for testing & possible inclusion? > > Here, enjoy. :-) > > Index: sys/sys/param.h > =================================================================== > RCS file: /home/ncvs/src/sys/sys/param.h,v > retrieving revision 1.15.2.2 > diff -u -r1.15.2.2 param.h > --- param.h 1996/12/15 09:54:28 1.15.2.2 > +++ param.h 1997/09/20 13:04:06 > @@ -65,7 +65,7 @@ > > #define MAXCOMLEN 16 /* max command name remembered */ > #define MAXINTERP 32 /* max interpreter file name length */ > -#define MAXLOGNAME 12 /* max login name length */ > +#define MAXLOGNAME 17 /* max login name length */ > #define MAXUPRC CHILD_MAX /* max simultaneous processes */ > #define NCARGS ARG_MAX /* max bytes for an exec function */ > #define NGROUPS NGROUPS_MAX /* max number groups */ > Index: include/utmp.h > =================================================================== > RCS file: /home/ncvs/src/include/utmp.h,v > retrieving revision 1.2 > diff -u -r1.2 utmp.h > --- utmp.h 1996/10/27 18:13:35 1.2 > +++ utmp.h 1997/09/20 13:03:42 > @@ -46,7 +46,7 @@ > #define _PATH_WTMP "/var/log/wtmp" > #define _PATH_LASTLOG "/var/log/lastlog" > > -#define UT_NAMESIZE 8 /* see MAXLOGNAME in */ > +#define UT_NAMESIZE 16 /* see MAXLOGNAME in */ > #define UT_LINESIZE 8 > #define UT_HOSTSIZE 16 > >-- End of excerpt from Jordan K. Hubbard -- Greg Rowe US WEST - !NTERACT "NT disaster recovery isn't all that difficult. Just follow the simple install instructions that come with the FreeBSD CD......"