From owner-freebsd-stable Tue Mar 23 12:45:44 1999 Delivered-To: freebsd-stable@freebsd.org Received: from horse.supranet.net (horse.supranet.net [205.164.160.8]) by hub.freebsd.org (Postfix) with ESMTP id 3756014D23 for ; Tue, 23 Mar 1999 12:45:37 -0800 (PST) (envelope-from gavinb@supranet.net) Received: from rat (rat.supranet.net [205.164.160.15]) by horse.supranet.net (8.9.3/8.9.3) with SMTP id OAA23176 for ; Tue, 23 Mar 1999 14:45:14 -0600 (CST) Message-Id: <4.1.19990323143242.00b423a0@mail.supranet.net> X-Sender: gavinb@mail.supranet.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Tue, 23 Mar 1999 14:46:23 -0600 To: freebsd-stable@freebsd.org From: Benjamin Gavin Subject: Username size limit suggestion Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I believe that we can all agree that there is never going to be an agreed upon limit on the username size. I have just finished rebuilding my system to support 32-character usernames (I think, have to finish testing it). I have a suggestion and also a couple of questions. First the suggestion: Suggestion: I noticed that the adduser script has the 16 character limit hard-coded into the file. I was thinking that it might be a good idea to make that a configurable global variable or something of that sort (i.e. $UT_NAMESIZE, ala. sys/params.h, at the top of the file.) That way those of us who want longer names could easily change the variable and be done with it. I understand that it is probably done this way to force people to know what they are doing when they change it. Questions: 1. Are there performance issues relating the the length of the username? 2. Are these (listed below) the only changes necessary to get the new username length to be active: a. Have full source tree b. change src/sys/sys/params.h (#define UT_NAMESIZE) to reflect the new length c. change src/include/utmp.h (#define MAXLOGNAME (UT_NAMESIZE+1)) d. make world c. cat /dev/null > /var/log/wtmp d. cat /dev/null > /var/run/utmp e. cat /dev/null > /var/log/lastlog f. edit /usr/sbin/adduser (change 16 to whatever) d. recompile ports and other programs that use wtmp,utmp and lastlog Is that it?? I am going to be completing testing, but I am wondering what gotchas are waiting for me :)... Thanks, Ben Gavin /--------------------------------------------------------------------------/ Benjamin Gavin - Senior Consultant *********** NO SPAM!! ************ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message