Mailinglist Archive: opensuse-security (211 mails)
| < Previous | Next > |
Re: [suse-security] root has no shell
- From: Lars Ellenberg <l.g.e@xxxxxx>
- Date: Wed, 8 Oct 2003 16:12:57 +0200
- Message-id: <pQ0cHM3Dkv5rfr6OLUFjZAk=lge@xxxxxx>
/ 2003-10-08 15:47:50 +0200
\ Ulrich Kautz:
> Hello All,
>
> Ive got a big Problem. I changed the root shell to /bin/false.
>
> There is neither a user in the sudoers nor is there any other root-user or
> even a user in the root group.
>
> Is it possible to switch back the shell to /bin/bash or sh or something?
>
> Ive tried:
> sudo -- not in sudoers
> su -s /bin/bash -c "command" -- "using restricted shell: /bin/false"
>
> thanks in advance,
> Ulrich
sorry, can not confirm this.
if nothing helps, there is always the "rescue" system on you
installation cds ...
or, if your boot loader permits this:
boot with init=/bin/bash :-)
SuSE 8.1, kernel.org 2.4.22, no special pam settings.
lars@johann$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/false
(0) 16:08:32 ~
lars@johann$ su
Password:
-- /bin/false drops me back to my "lars" prompt
(0) 16:08:42 ~
lars@johann$ su -s /bin/bash
Password:
(0) 16:08:51 /home/lars
root@johann#
-- ok, now I'm root again, hack away ...
Lars Ellenberg
\ Ulrich Kautz:
> Hello All,
>
> Ive got a big Problem. I changed the root shell to /bin/false.
>
> There is neither a user in the sudoers nor is there any other root-user or
> even a user in the root group.
>
> Is it possible to switch back the shell to /bin/bash or sh or something?
>
> Ive tried:
> sudo -- not in sudoers
> su -s /bin/bash -c "command" -- "using restricted shell: /bin/false"
>
> thanks in advance,
> Ulrich
sorry, can not confirm this.
if nothing helps, there is always the "rescue" system on you
installation cds ...
or, if your boot loader permits this:
boot with init=/bin/bash :-)
SuSE 8.1, kernel.org 2.4.22, no special pam settings.
lars@johann$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/false
(0) 16:08:32 ~
lars@johann$ su
Password:
-- /bin/false drops me back to my "lars" prompt
(0) 16:08:42 ~
lars@johann$ su -s /bin/bash
Password:
(0) 16:08:51 /home/lars
root@johann#
-- ok, now I'm root again, hack away ...
Lars Ellenberg
| < Previous | Next > |