From owner-freebsd-hackers Fri Dec 21 11:38:53 2001 Delivered-To: freebsd-hackers@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 335E537B416 for ; Fri, 21 Dec 2001 11:38:50 -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 16HVVH-0005LK-00 for hackers@freebsd.org; Fri, 21 Dec 2001 19:38:47 +0000 Received: from setantae by rhadamanth.private.submonkey.net with local (Exim 3.33 #1) id 16HVSG-0000BO-00 for hackers@FreeBSD.org; Fri, 21 Dec 2001 19:35:40 +0000 Date: Fri, 21 Dec 2001 19:35:40 +0000 From: Ceri To: hackers@FreeBSD.org Subject: Renaming root to something else ? Message-ID: <20011221193540.GA598@rhadamanth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.24i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here's question oozing with newbieness, but I'm still convinced this is the correct list. Does this code from src/sbin/init/init.c preclude renaming of the root account ? /* * Establish an initial user so that programs running * single user do not freak out and die (like passwd). */ if (setlogin("root") < 0) warning("setlogin() failed: %m"); If so, wouldn't it be an idea to call getpwnam on uid 0 ? I don't even know C all that well, so flame on if this is obvious, but if you could indicate why at the same time it would be nice ;) Thanks, Ceri -- keep a mild groove on To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message