Date: Mon, 31 Dec 2001 15:57:09 +0000 From: Ceri <setantae@submonkey.net> To: Rogier Steehouder <r.j.s@gmx.net> Cc: FreeBSD-questions@freebsd.org Subject: Re: Can I rename root? Message-ID: <20011231155709.GA8082@rhadamanth> In-Reply-To: <20011231154733.A832@localhost> References: <20011229154552.B855@localhost> <20011230103317.A474@localhost> <20011231154733.A832@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011231155709.GA8082>