From owner-freebsd-questions Wed Jun 3 15:29:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA16633 for freebsd-questions-outgoing; Wed, 3 Jun 1998 15:29:31 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dove.peace.com.my (peace.com.my [202.184.153.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA16621 for ; Wed, 3 Jun 1998 15:29:23 -0700 (PDT) (envelope-from panda@peace.com.my) Received: from lovebox (love.com.my [202.184.153.17]) by dove.peace.com.my (8.8.5/8.8.5) with SMTP id GAA14250; Thu, 4 Jun 1998 06:10:11 +0800 (SGT) Date: Thu, 4 Jun 1998 06:10:11 +0800 (SGT) Message-Id: <3.0.32.19980604063208.0099e100@peace.com.my> X-Sender: panda@peace.com.my X-Mailer: Windows Eudora Pro Version 3.0 (32) To: FreeBSD-questions@FreeBSD.ORG, freebsd@cavecreek.net From: chas Subject: Re: MAXLOGNAME and UT_NAMESIZE Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id PAA16623 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The following worked for me : 1. change settings in : UT_NAMESIZE=16 in /usr/src/include/utmp.h MAXLOGNAME=18 in /usr/src/sys/sys/param.h 2. make world : there's a good article at http://www.nothing-going-on.demon.co.uk/FreeBSD/make-world/make-world.html But basically if you have a new box : - edit /etc/make.conf (first make a copy to /etc/make.conf.dist) … - Drop to single user mode with #shutdown now - # cd /usr/obj and remove anything there - # cd /usr/src - # make buildworld - # make installworld This does not update configuration files.. only the binaries and programs themselves. See the webpage on making world for details of how to compare config files. 3. Remove utmp and wtmp. See 'man utmp' and 'man wtmp' for details… but basically you have to remove these since the database structure might change with the long usernames. I didn't have a wtmp file but did the following on utmp : # mv /var/run/utmp /var/run/utmp.back # touch /var/run/utmp" All of this is somewhere in the archives already. (Thanks to Studded for putting me on the right path when I had to do this.) Looks like you haven't done make world. So far, nothing's fallen apart on my machine so hope it works for you ! chas ps. don't forget to edit adduser and other scripts. pps. you probably don't want to be cross posting ISP and Questions >The standard for FreeBSD 2.2.x is set to 8. I have changed UT_NAMESIZE and >MAXLOGNAME in ALL .h files (/usr/include/sys/utmp.h etc... etc) >and I recompiled chown.c and getpwent.c and passwd.c > >but still I get : chown: : illegal user name > >when exceeds 8 chars. > >Any ideas anyone ? I need a maximum of 17 chars in a login ID. > >Thanks > >Peter. > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message