Date: Tue, 8 Aug 2006 17:01:47 -0700 From: "Ross Penner" <ross.penner@gmail.com> To: "Pete Slagle" <freebsd-questions@voidcaptain.com>, freebsd-questions@freebsd.org Subject: Re: Changing root's shell Message-ID: <f80199c40608081701l1106fc6auf732412dcee3ac70@mail.gmail.com> In-Reply-To: <44D90E48.6070904@voidcaptain.com> References: <op.tdzdwqn3w0tva9@ross.inet> <44D8F107.1020409@voidcaptain.com> <f80199c40608081322s137f9930vddc568d1130f0060@mail.gmail.com> <44D90E48.6070904@voidcaptain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/8/06, Pete Slagle <freebsd-questions@voidcaptain.com> wrote: > > Ross Penner wrote: > > > how do you drop to single user mode? I just know how to get there at > > boot time. > > > > Thanks. > > > > On 8/8/06, *Pete Slagle* < freebsd-questions@voidcaptain.com > > <mailto:freebsd-questions@voidcaptain.com>> wrote: > > > > ross wrote: > > > > > so it seems changed root login's shell to /usr/bin/bash which > doesn't > > > exist. now I can't login to root at all. Oh yes, sudo isn't > > installed. How > > > would you grand masters of FreeBSD fix my embarrasing mistake. > > > > Dunno if any grand masters are about, but maybe I can help with this > > > one. > > > > - drop to single user mode: `shutdown now` > > - when prompted for a shell, type /bin/sh > > - `vipw /etc/passwd` and (carefully) change root's shell to > /bin/sh > > - type `exit` at the shell prompt to return from single user mode > > Normally you just do what I said, `shutdown now` as root, but I guess > you can't do that in your situation. (Silly me.) So just reboot into > single user mode instead, and follow the rest of the steps. > > Good luck, > Pete > > interestingly, by hitting the power button on the front, it went through the shutdown process without root permissions. 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f80199c40608081701l1106fc6auf732412dcee3ac70>