From owner-freebsd-questions Wed Oct 25 19:54:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id 011EB37B479 for ; Wed, 25 Oct 2000 19:54:50 -0700 (PDT) Received: (qmail 5179 invoked by uid 100); 26 Oct 2000 02:54:44 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14839.40180.36504.160277@guru.mired.org> Date: Wed, 25 Oct 2000 21:54:44 -0500 (CDT) To: Salvo Bartolotta Cc: questions@freebsd.org Subject: Re: [none] In-Reply-To: <87486119@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Salvo Bartolotta writes: > > Actually, Amnesiac Mode refers to a system which has got no root > > password (or one shorter than six chars). To turn it off: > > su to/login as root (should be pretty easy now ;-) > Whatever the exact cause may be (I'll try a suitable "grep -r" sooner > or later), the moral seems to be: in a well-configured system there is > no room for "Amnesiac" :-) It refers to a system that has no hostname. Quoting /usr/src/libexec/getty/main.c: gethostname(hostname, sizeof(hostname) - 1); hostname[sizeof(hostname) - 1] = '\0'; if (hostname[0] == '\0') strcpy(hostname, "Amnesiac"); I.e. - if the string the gethostname syscall copies onto hostname is empty, use the name "Amnesiac".