Re: root shell
From: K7MEM (k7mem_at_myrealbox.com)
Date: 08/03/04
- Next message: Richard L. Hamilton: "Re: Question on Unix FIFOs - why slow when on NFS?"
- Previous message: Tonij: "Re: How to use the UNIX command: tr"
- In reply to: Levente KOVACS: "root shell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 03 Aug 2004 06:32:53 -0700
Levente KOVACS wrote:
> Hi folks,
>
>
> By mistake, I added to /etc/passwd the root shell as /sbin/bash, which
> was invalid.
>
> After logging out, I could not login as root... It said "shell is
> invaid" or something like that. I have tried to su, but no succes.
>
> Finaly, I inserted the install CD, and booted the system... I could get
> shell there, but I could not mount the root partition of my disk.
>
> So I went further of the install process, and it mounted the filsystem
> to /a, so I coudl correct my mistake.
>
> Is there any other way to specify root shell by an ordinary user? Or
> some workaround for things like this?
>
>
> Thanx: Levente
If you booted single user to the CD then you should have been able to
mount the root file system and edit the password file.
Did you boot single user and what was the command you used to do the
mounting?
-- Martin E. Meserve k7mem@myrealbox.com http://www.k7mem.150m.com
- Next message: Richard L. Hamilton: "Re: Question on Unix FIFOs - why slow when on NFS?"
- Previous message: Tonij: "Re: How to use the UNIX command: tr"
- In reply to: Levente KOVACS: "root shell"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|