Re: I've hozed my root login.
Hi...
Anyone who has an up time over a week probably is obsessed with it. I
haven't got quite that much, but I'm slowly getting there... hell, I only
upgraded this thing a few days ago :)
Alex
On Tue, 21 Jul 1998, Stephen J. Carpenter wrote:
> Date: Tue, 21 Jul 1998 09:38:16 -0400
> From: "Stephen J. Carpenter" <sjc@delphi.com>
> To: debian <debian-user@lists.debian.org>
> Subject: Re: I've hozed my root login.
> Resent-Date: 21 Jul 1998 13:32:08 -0000
> Resent-From: debian-user@lists.debian.org
> Resent-cc: recipient list not shown: ;
>
> On Tue, Jul 21, 1998 at 10:24:09AM +0200, E.L. Meijer (Eric) wrote:
> > >
> > > As root I ran chsh and accidentally entered an
> > > invalid shell path. chsh didn't detect this mistake
> > > like it does for a regular user!
> > > I wasn't aware of my blunder till next time I tried to
> > > login as root.
> > > I tried booting from the rescue floppy and then mounting
> > > my linux drive so that I might edit /etc/passwd but the
> > > mount did something weird, when I "cd /mnt/etc" there was
> > > nothing there, I mean the dir was empty, hence I couldn't
> > > edit anything. This "emptiness" phenomenon was also true for
> > > other dirs. weird!
> > > Any words of wisdom?
> >
> > This is way to big an operation to solve this problem. You can specify
> > which shell you want to su:
> >
> > su -s /bin/bash
> >
> > and you are root again. Then you can run chsh or simply edit the last
> > item of root in /etc/passwd.
>
> Thats good to know...and another tip...
> you can also reboot and (assuming you use lilo) give the kernel
> Linux /bin/bash
> then you will immediately get a root login...no questions asked :)
>
> this is usefull if you REALLY hose the system....or
> if you are not obsessed with your uptime :)
>
> of course now im not obsessed with my uptime...after a few kernel builds...and
> power outage last night (I love my UPS)...my uptime is under a day.
>
> -Steve
> --
> /* -- Stephen Carpenter <sjc@delphi.com> --- <sjc@debian.org>------------ */
> E-mail "Bumper Stickers":
> "A FREE America or a Drug-Free America: You can't have both!"
> "honk if you Love Linux"
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: