Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #187058

Re: Rescue mode when root account locked

From Curt <curty@free.fr>
Newsgroups linux.debian.user
Subject Re: Rescue mode when root account locked
Date 2017-09-20 15:20 +0200
Message-ID <urN4Z-3xh-3@gated-at.bofh.it> (permalink)
References <urLFT-2u1-3@gated-at.bofh.it>
Organization Unorganized

Show all headers | View raw


On 2017-09-20, solitone <solitone@mail.com> wrote:
> When I boot in rescue mode, I get this message:
>
> Cannot open access to console, the root account is locked. See 
> sulogin(8) man page for more details
>
> When I press Enter to continue, it continues bootup in normal graphical 
> mode.
>
> Would it be wiser to unlock the root account, so that I can go into 
> single user mode? Or is there something I can do, without unlocking the 
> root account?
>

It seems this a "bug."

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802211

Michael Biebl says (to explain why careful deliberation is called for before it's
"fixed"):

 Consider this: You have a laptop with a locked root account. By default
 the grub boot loader generates a boot entry for rescue mode.
 So, even if you lock down the bios to not allow booting from CD-Rom or
 USB, and you password protect grub, someone could easily get root access
 if you leave the laptop unattended for a moment.

Marga Manterola created a "drop-in" fix:

  cat /etc/systemd/system/rescue.service.d/sulogin.conf
  [Service]
  ExecStart=
  ExecStart=-/bin/sh -c "/sbin/sulogin --force; /bin/systemctl
  --job-mode=fail --no-block default"

the security implications of which ("/sbin/sulogin --force") are beyond my meager
abilities to comment upon.

-- 
"Time flies like an arrow. Fruit flies like a banana." Groucho

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Rescue mode when root account locked solitone <solitone@mail.com> - 2017-09-20 13:50 +0200
  Re: Rescue mode when root account locked Dejan Jocic <jodejka@gmail.com> - 2017-09-20 15:10 +0200
  Re: Rescue mode when root account locked Michael Biebl <biebl@debian.org> - 2017-09-20 15:10 +0200
  Re: Rescue mode when root account locked Curt <curty@free.fr> - 2017-09-20 15:20 +0200
    Re: Rescue mode when root account locked solitone <solitone@mail.com> - 2017-09-20 16:00 +0200

csiph-web