Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 97 19:24:44 -0800
From:      "Studded" <Studded@dal.net>
To:        "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>, "Peter Philipp - admin" <philipp@globalserve.net>
Cc:        "pjp@globalserve.net" <pjp@globalserve.net>
Subject:   Re: username length
Message-ID:  <199711170324.TAA29952@mail.san.rr.com>

next in thread | raw e-mail | index | archive | help
On Sat, 15 Nov 1997 23:05:15 -0500 (EST), Peter Philipp - admin wrote:

>I was wondering if there is a way to recompile the FreeBSD kernel to allow
>username lengths of 16 characters instead of the 12 as defined in
>sys/param.h.  I have a few other Operating Systems and to use FreeBSD, I
>need a userlength support of 16 characters.  

	Here you go.  I wouldn't have sent it to the list again so soon
except it's small. :)

Doug

	A while ago there was a discussion about moving the ability to
work with more than 8 character usernames in the 2.2 branch.  I decided to
give it a go on my test system, and it's working fine.  I thought I'd pass
this info on in case anyone else is interested in trying it.

	First off, to make it work edit /usr/src/sys/sys/param.h, changing
MAXLOGNAME to 18, and /usr/src/include/utmp.h changing UT_NAMESIZE to 16. 
Now do a make world. :)  This will let you have usernames of 16
charachters or less.  It was originally reported that the value of
MAXLOGNAME should be 17, but when I tried that I got an error from
setusercontext( ) when I tried logging in with a 16 char username,
although a 15 char username worked.  

	So far everything seems pretty happy with the 16 character names. 
The ps has a problem with lining things up, and gnuls truncates the names
to 8.  Anyone have a suggestion about gnuls?  I really like it, but not
seeing the whole uid/gid is getting confusing. :)  I'm going to try
colorls when I get a chance.  FreeBSD's ls handles the long names just
fine after the make world.

	The only other thing I had to change so far was adduser.  There is
a check to see if the username is >8 characters, I just changed it to 16
(once in the code, and once in the warning message) and it worked fine.  


*** Proud operator, designer and maintainer of the  world's largest
*** Internet Relay Chat server. 4,168 clients and still growing. :-)
*** Try spider.dal.net on ports 6662-4    (Powered by FreeBSD)
***		Part of the DALnet IRC network		***




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