Date: Tue, 8 Aug 2006 21:04:58 -0700 From: "Nikolas Britton" <nikolas.britton@gmail.com> 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: <ef10de9a0608082104g5e975080xeb84fe8ec0227c8@mail.gmail.com> 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
On 8/8/06, Ross Penner <ross.penner@gmail.com> wrote: > 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. Did you re-mount the root partition in read/write mode? You know this whole thing could have been avoided if you tested things first: # bash bash: Command not found. -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef10de9a0608082104g5e975080xeb84fe8ec0227c8>