Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 1997 15:06:59 -0500
From:      "Greg Rowe" <greg@uswest.net>
To:        "Jordan K. Hubbard" <jkh@time.cdrom.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: >8 char usernames going into 2.2.5?
Message-ID:  <9709201506.ZM9357@nevis.oss.uswest.net>
In-Reply-To: "Jordan K. Hubbard" <jkh@time.cdrom.com> "Re: >8 char usernames going into 2.2.5?" (Sep 20,  6:04am)
References:  <27009.874760684@time.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 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 <sys/param.h> */
> +#define	UT_NAMESIZE	16	/* see MAXLOGNAME in <sys/param.h> */
>  #define	UT_LINESIZE	8
>  #define	UT_HOSTSIZE	16
>
>-- End of excerpt from Jordan K. Hubbard



-- 
Greg Rowe <greg@uswest.net> 
US WEST - !NTERACT

  "NT disaster recovery isn't all that difficult. Just follow the 
   simple install instructions that come with the FreeBSD CD......"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9709201506.ZM9357>