From owner-freebsd-questions Fri Jul 25 11:50:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA18074 for questions-outgoing; Fri, 25 Jul 1997 11:50:51 -0700 (PDT) Received: from milehigh.denver.net (milehigh.denver.net [204.144.180.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA18068 for ; Fri, 25 Jul 1997 11:50:48 -0700 (PDT) Received: from localhost (jdc@localhost) by milehigh.denver.net (8.8.5/8.8.5) with SMTP id MAA05584; Fri, 25 Jul 1997 12:51:15 -0600 (MDT) Date: Fri, 25 Jul 1997 12:51:15 -0600 (MDT) From: John-David Childs To: Brian William Francis Tobin XXIX cc: questions@FreeBSD.ORG Subject: Re: adduser - more than 8 chars In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 25 Jul 1997, Brian William Francis Tobin XXIX wrote: > > Hello. > > I was wondering if it was possible to add users with usernames larger > than 8 characters. > You have to change /usr/include/utmp.h (aka /usr/src/include/utmp.h) and /usr/include/sys/param.h (aka /usr/src/sys/sys/param.h) first to allow >8 character usernames. Then you have to rebuild your system (inc. kernel I suggest). Then you have to recompile any extra utils (like top) which refer to utmp.h or param.h. Finally, hack the source to /usr/sbin/adduser to remove the check for <8 character usernames. WARNING: I set my UT_NAMESIZE & MAXLOGNAME to 16, but it seems that the login program (FreeBSD 2.2) won't allow a username > 14 characters. The filesystem works ok (e.g. I can cd ~verylongusername, but I can't login as verylongusername). I just discovered this fact today and I'm trying to figure it out via the login source code. Whenver I try to login with a 15 or 16 character username I get: Jul 25 12:48:52 milehigh login: setlogin(verylongusername): Invalid argument Jul 25 12:48:52 milehigh login: setlogin(verylongusername): Invalid argument Jul 25 12:48:52 milehigh login: setusercontext() failed - exiting Jul 25 12:48:52 milehigh login: setusercontext() failed - exiting -- John-David Childs (JC612) @denver.net/Internet-Coach System Administrator Enterprise Internet Solutions & Network Engineer 901 E 17th Ave, Denver 80218 Give me a Plumber's friend the size of the Pittsburgh dome, and a place to stand, and I will drain the world.