From owner-freebsd-questions Sat Nov 15 13:16:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA09500 for questions-outgoing; Sat, 15 Nov 1997 13:16:17 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from mail.san.rr.com (san.rr.com [204.210.0.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA09464 for ; Sat, 15 Nov 1997 13:16:09 -0800 (PST) (envelope-from studded@san.rr.com) Received: (from studded@localhost) by mail.san.rr.com (8.8.7/8.8.7) id NAA25128; Sat, 15 Nov 1997 13:15:38 -0800 (PST) Message-Id: <199711152115.NAA25128@mail.san.rr.com> From: "Studded" To: "FreeBSD Questions" Date: Sat, 15 Nov 97 13:15:34 -0800 Reply-To: "Studded" Priority: Normal X-Mailer: PMMail 1.95a For OS/2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Info: 16 char usernames in 2.2-Stable Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. I hope someone finds this info useful, Doug *** 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 ***