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


Groups > linux.debian.user > #165466

Password protecting grub

From Himanshu Shekhar <irm2015006@iiita.ac.in>
Newsgroups linux.debian.user
Subject Password protecting grub
Date 2016-03-16 12:40 +0100
Message-ID <rdhXY-8lR-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I wish to password protect grub bootloader. I tried the steps available on
online manuals as of RedHat, Ubuntu, etc. All experiments were on a
VirtualBox machine, so my system remains safe. However, I didn't get
success.
Every time I write the line to the config file and run update-grub, I get
the response
"password : command not found".

I made experiments with the following files:
  /etc/grub.d/00_header
  /etc/grub.d/40_custom
  /boot/grub/grub.cfg

adding
" set superusers="root"
  password root rootpassword
"
or
" password mypassword "
or
" password --md5 $$$%#$ "

different times. Each time, I had the same error generated.

My current system, where changes are expected has Debian Stretch on a UEFI
installation. So, I have no idea whether the things are same or different
for UEFI and Legacy.
Also, when I tried to install grub (for grub-md5-crypt), it asked to remove
grub-efi and install grub-pc, grub-legacy and their team.
I need EFI because I have Windows as dual boot, I haven't used for long,
but I still want to retain it.

Regards
Himanshu Shekhar

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


Thread

Password protecting grub Himanshu Shekhar <irm2015006@iiita.ac.in> - 2016-03-16 12:40 +0100
  Re: Password protecting grub jdd <jdd@dodin.org> - 2016-03-16 13:10 +0100
    Re: Password protecting grub Himanshu Shekhar <irm2015006@iiita.ac.in> - 2016-03-16 13:20 +0100
      Re: Password protecting grub jdd <jdd@dodin.org> - 2016-03-16 13:30 +0100
        Re: Password protecting grub <tomas@tuxteam.de> - 2016-03-16 13:50 +0100
  Re: Password protecting grub <tomas@tuxteam.de> - 2016-03-16 13:30 +0100
  Re: Password protecting grub David Wright <deblis@lionunicorn.co.uk> - 2016-03-16 15:30 +0100
    Re: Password protecting grub Himanshu Shekhar <irm2015006@iiita.ac.in> - 2016-03-16 17:30 +0100
      Re: Password protecting grub arian <debian@semioptimal.net> - 2016-03-16 17:40 +0100
      Re: Password protecting grub jdd <jdd@dodin.org> - 2016-03-16 18:00 +0100
        Re: Password protecting grub Himanshu Shekhar <irm2015006@iiita.ac.in> - 2016-03-16 18:50 +0100
          Re: Password protecting grub Raj Kiran Grandhi <grajkiran@gmail.com> - 2016-03-17 07:30 +0100
            Re: Password protecting grub David Wright <deblis@lionunicorn.co.uk> - 2016-03-17 18:00 +0100
              Re: Password protecting grub Raj Kiran Grandhi <grajkiran@gmail.com> - 2016-03-18 14:40 +0100
                Re: Password protecting grub David Wright <deblis@lionunicorn.co.uk> - 2016-03-18 16:30 +0100
          Re: Password protecting grub Adam Wilson <moxalt@riseup.net> - 2016-03-17 17:10 +0100
            Re: Password protecting grub Martin Smith <lists@rakupottery.org.uk> - 2016-03-17 18:10 +0100
              Re: Password protecting grub Lisi Reisz <lisi.reisz@gmail.com> - 2016-03-17 18:40 +0100
      Re: Password protecting grub Adam Wilson <moxalt@riseup.net> - 2016-03-17 17:10 +0100

csiph-web