From owner-freebsd-questions Sun Jan 6 14:44:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from kabel203069.kabel.utwente.nl (kabel203069.kabel.utwente.nl [130.89.203.69]) by hub.freebsd.org (Postfix) with ESMTP id 54E7B37B404 for ; Sun, 6 Jan 2002 14:44:44 -0800 (PST) Received: by kabel203069.kabel.utwente.nl (Postfix, from userid 1000) id B87211F91; Sun, 6 Jan 2002 23:44:36 +0100 (CET) Date: Sun, 6 Jan 2002 23:44:36 +0100 From: Rogier Steehouder To: Ceri Cc: FreeBSD-questions@freebsd.org Subject: Re: Can I rename root? Message-ID: <20020106234436.A837@localhost> Mail-Followup-To: Rogier Steehouder , Ceri , FreeBSD-questions@freebsd.org References: <20011229154552.B855@localhost> <20011230103317.A474@localhost> <20011231154733.A832@localhost> <20011231155709.GA8082@rhadamanth> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011231155709.GA8082@rhadamanth>; from setantae@submonkey.net on Mon, Dec 31, 2001 at 03:57:09PM +0000 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 31-12-2001 15:57 (+0000), Ceri wrote: > 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 > -- Thank you Ceri! I don't use other people's source code if I can help it, but this is what I was asking for. One of the most important programs in the system assumes the superuser is called 'root'. That is a good reason to keep the name (or change it back as I did). So there is a good reason to keep the name (besides tradition) after all. Now all we need is a list with other usernames some programs require and which should not be removed. With kind regards, Rogier Steehouder -- ___ _ -O_\ // | / Rogier Steehouder //\ / \ r.j.s@gmx.net // \ <---------------------- 25m ----------------------> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message