Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Aug 2006 08:39:58 +0200
From:      Erik Norgaard <norgaard@locolomo.org>
To:        Ross Penner <ross.penner@gmail.com>
Cc:        freebsd-questions@freebsd.org, Pete Slagle <freebsd-questions@voidcaptain.com>
Subject:   Re: Changing root's shell
Message-ID:  <44D9833E.9080606@locolomo.org>
In-Reply-To: <f80199c40608081701l1106fc6auf732412dcee3ac70@mail.gmail.com>
References:  <op.tdzdwqn3w0tva9@ross.inet> <44D8F107.1020409@voidcaptain.com>	<f80199c40608081322s137f9930vddc568d1130f0060@mail.gmail.com>	<44D90E48.6070904@voidcaptain.com> <f80199c40608081701l1106fc6auf732412dcee3ac70@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Ross Penner wrote:
> On 8/8/06, Pete Slagle <freebsd-questions@voidcaptain.com> wrote:
> I followed your steps but the problem remains. The /etc/passwd file is
> edited but I still can't logon as root. When I changed the shell initially,
> I used chpass. I
> also tried changeing the /etc/master.passwd file to no avail.

As mentioned by others: did you remount the root partition rw? In single 
  user mode it is mounted read-only. 2nd: Did you use vipw, the pw 
command or just vi?

If you can see your changes in the master.passwd file, then you might 
just need to rebuild the db files while still in single-user mode:

   # pwd_mkdb /etc/master.passwd
   # pwd_mkdb -p /etc/master.passwd

If this fails, maybe some strange character sneaked in and building the 
database fails. Then you can recover the original master.passwd from the 
sources, /usr/src/etc/master.passwd, you still have to rebuild the db files.

Cheers, Erik

-- 
Ph: +34.666334818                      web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9



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