From owner-freebsd-questions Mon Dec 31 7:57:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay3-gui.server.ntli.net (relay3-gui.server.ntli.net [194.168.4.200]) by hub.freebsd.org (Postfix) with ESMTP id 7D6F837B50B for ; Mon, 31 Dec 2001 07:57:16 -0800 (PST) Received: from pc3-card4-0-cust122.cdf.cable.ntl.com ([62.254.251.122] helo=rhadamanth.private.submonkey.net ident=exim) by relay3-gui.server.ntli.net with esmtp (Exim 3.03 #2) id 16L4oM-00044W-00; Mon, 31 Dec 2001 15:57:14 +0000 Received: from setantae by rhadamanth.private.submonkey.net with local (Exim 3.33 #1) id 16L4oH-00028e-00; Mon, 31 Dec 2001 15:57:09 +0000 Date: Mon, 31 Dec 2001 15:57:09 +0000 From: Ceri To: Rogier Steehouder Cc: FreeBSD-questions@freebsd.org Subject: Re: Can I rename root? Message-ID: <20011231155709.GA8082@rhadamanth> Mail-Followup-To: Ceri , Rogier Steehouder , FreeBSD-questions@freebsd.org References: <20011229154552.B855@localhost> <20011230103317.A474@localhost> <20011231154733.A832@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011231154733.A832@localhost> User-Agent: Mutt/1.3.24i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 31, 2001 at 03:47:33PM +0100, Rogier Steehouder wrote: > On 30-12-2001 10:33 (+0100), Rogier Steehouder wrote: > > On 29-12-2001 15:45 (+0100), Rogier Steehouder wrote: > > > A simple question: Can I rename root? > > > > I only got the advise: Don't. iThanks for the advise, but since noone > > knew any programs explicitly, I did it anyway. > What was it Shakespear said about a rose's name? That's as may be, but he obviously never looked at the source ;) : setantae@rhadamanth setantae$ grep -C2 root /usr/src/sbin/init/init.c * single user do not freak out and die (like passwd). */ if (setlogin("root") < 0) warning("setlogin() failed: %m"); -- struct passwd *pp; static const char banner[] = "Enter root password, or ^D to go multi-user\n"; char *clear, *password; #endif -- #ifdef SECURE /* * Check the root password. * We don't care if the console is 'on' by default; * it's the only tty that can be 'off' and 'secure'. */ typ = getttynam("console"); pp = getpwnam("root"); if (typ && (typ->ty_status & TTY_SECURE) == 0 && pp && *pp->pw_passwd) { setantae@rhadamanth setantae$ Ceri -- keep a mild groove on To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message