Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2023 10:36:18 -0700 (PDT)
From:      "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: Surprise null root password
Message-ID:  <202305271736.34RHaI1H025653@gndrsh.dnsmgr.net>
In-Reply-To: <ZHFqzf9A90L9NfJb@www.zefox.net>

index | next in thread | previous in thread | raw e-mail

> It turns out all seven hosts in my cluster report
> a null password for root in /usr/src/etc/master.passwd:
> root::0:0::0:0:Charlie &:/root:/bin/sh
> 
> Is that intentional?

No, but I suspect your build/update procedures are infact telling
the system to do this.  Someone else pointed out etcupdate, which
iirc you are using, with the update of "thiers all" infact would
overwrite /etc/master.passwd.  I do not know that etcupdate has
the smarts to know that if it overwrites /etc/master.passwd it
needs to run a pwd_mkdb -p /etc/master.passwd.  etcupdate infact
does have the smarts to run a pwd_mkdb.

Hum, it also has some special casing of PREWORLD_FILES, which 
is /etc/master.passwd and etc/group.  Perhaps something in that
process went wrong.

-- 
Rod Grimes                                                 rgrimes@freebsd.org


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305271736.34RHaI1H025653>