Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!rill.news.pipex.net!pipex!oleane!jussieu.fr!eurocontrol.fr!polaris.eurocontrol.fr!not-for-mail From: roberto@eurocontrol.fr (Ollivier Robert) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Root Password Date: 28 Apr 1997 15:31:07 GMT Organization: Eurocontrol EEC, Bretigny, France Lines: 30 Message-ID: <5k2frr$fv7$2@polaris.eurocontrol.fr> References: <18F8FF21930307C2.9C8789DEFA86E574.971B7B7D034EAE5D@library-proxy.airnews.net> <fred-ya02408000R2604971333350001@news.lightside.com> NNTP-Posting-Host: caerdonn.eurocontrol.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsposter: trn 4.0-test56 (2 Mar 97) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39883 [courtesy cc of this posting sent to cited author via email] In article <fred-ya02408000R2604971333350001@news.lightside.com>, Fred Condo <fred@lightside.net> wrote: > The root password is initially empty. But there is a small bug in 2.2.1 that makes login impossible when the root password is empty :-( Here is the fix: Index: login.c =================================================================== RCS file: /home/ncvs/src/usr.bin/login/login.c,v retrieving revision 1.12.2.2 retrieving revision 1.12.2.3 diff -u -2 -r1.12.2.2 -r1.12.2.3 --- login.c 1997/03/25 05:26:29 1.12.2.2 +++ login.c 1997/03/27 10:06:43 1.12.2.3 @@ -269,5 +269,5 @@ break; } else if (pwd->pw_passwd[0] == '\0') { - if (rootlogin && !rootok) { + if (!rootlogin || rootok) { /* pretend password okay */ rval = 0; -- Ollivier ROBERT -=- FreeBSD: there are no limits -=- roberto@eurocontrol.fr FreeBSD FAQ: <URL:http://www.FreeBSD.org/FAQ/>