[Gllug] Creating a new password file on an NFS mounted root system

Adrian McMenamin adrian at newgolddream.dyndns.info
Sun Jul 13 17:08:39 UTC 2008

On Sun, 2008-07-13 at 18:02 +0100, Bruce Richardson wrote:
> On Sun, Jul 13, 2008 at 05:57:30PM +0100, Adrian wrote:
> > Can I just copy the /etc/passwd and /etc/shadow files off some other
> > system (where the passwords are known), or is there some other way of
> > doing this?
> As root, chroot to the mounted filesystem.  Then use the passwd utility
> to change the root password.  That'll use the binaries and files on the
> mounted filesystem and guarantee no bookkeeping is left undone.
Problem with that is that the file system is a lot of SH4 binaries and
the host is ia86 - so it falls over because bash isn't executable.

I've just copied over the passwd and shadow files and it *seems* to
work, but if anyone has a more elegant solution I'd still be interested
in hearing it.


Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list