Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 1998 14:07:57 -0700
From:      Studded <Studded@dal.net>
To:        Nathan Dorfman <nathan@fcc.net>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Bumping MAXLOGNAME?
Message-ID:  <35E5CAAD.97F3A163@dal.net>
References:  <19980826153806.A4191@fcc.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Nathan Dorfman wrote:
> 
> Is it safe to bump MAXLOGNAME in sys/param.h and expect to have 16
> character usernames? We already have a good number of customers with usernames
> with lengths between 8 and 16 and need our new FreeBSD machines to understand
> these usernames. As -current runs with MAXLOGNAME==17, I don't see a problem
> with doing this on a -stable machine. Is there anywhere else I might need
> to change this, or any pitfalls I am missing?

	Here's my standard response. The convo about stdio.h might be important
as well, stay tuned. :)

Doug

        You will need to change a couple files and use "make world" to
recompile the system for the larger usernames. Any third party utilities
that use usernames like ssh or xterm will also have to be recompiled
after the make world is done. The good news is that it works just fine,
I have been running -Stable with 16 char usernames for over a year now. 

In /usr/src/sys/sys/param.h:
change MAXLOGNAME to 18

In /usr/src/include/utmp.h:
change UT_NAMESIZE to 16

If you need help with the make world, take a look at
http://www.freebsd.org/docs.html and click on the Upgrading FreeBSD from
source (using make world) tutorial. After you're done with this some
utilities like adduser and rmuser will have to be modified by hand to
support the long usernames, but we're working on making these fewer and
farther between as time goes on. :)

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?35E5CAAD.97F3A163>