Password protected menu has incorrect usage of the --users tag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-docs (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
At the page https:/
A piece of instruction reads
-------
===Adding Protection to Ubuntu Entries subsection===
Add --users :
printf "menuentry '${title}' ${CLASS} --users "" {\n" "${os}" "${version}"
-------
Actually it should be --users \"\"
Instructions in the box read:
-------
===Adding Protection to Other Entries subsection===
sudo sed 's/--class os /--class os --users /' -i /etc/grub.
-------
I think --users should also be changed as in the section above (I did not test this).
The thing is that in case of plain menuentry instruction (without printf) --users "" work fine. But if there's printf in front of it the actual menuentry is generated in grub.cfg without those quotes. An example of broken configuration is below:
menuentry 'Ubuntu, with Linux 3.2.0-27-
This small issue actually broke my bootloader so I was not able to quickly figure out what had happened.
Details about my installation as follows:
lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
unsubscribe
---------- Forwarded message ----------
From: Anton Pushkarev <email address hidden>
Date: Fri, 27 Jul 2012 18:40:11 -0000
Subject: [Bug 1030085] [NEW] Password protected menu has incorrect
usage of the --users tag
To: <email address hidden>
Public bug reported:
At the page /help.ubuntu. com/community/ Grub2/Passwords #Protecting_ Menuentries,
https:/
Protecting Menuentries section there are following mistakes:
1. Adding Protection to Ubuntu Entries subsection
A piece of instruction reads
Add --users :
printf "menuentry '${title}' ${CLASS} --users "" {\n" "${os}"
"${version}"
Actually it should be --users \"\"
2. Adding Protection to Other Entries subsection
Instructions in the box read:
sudo sed 's/--class os /--class os --users /' -i /etc/grub.d/30_os-
prober
I think --users should also be changed as in the section above (I did
not test this).
The thing is that in case of plain menuentry instruction (without
printf) --users "" work fine. But if there's printf in front of it the
actual menuentry is generated in grub.cfg without those quotes. An
example of broken configuration is below:
menuentry 'Ubuntu, with Linux 3.2.0-27- generic- pae (recovery mode)'
--class ubuntu --class gnu-linux --class gnu --class os --users {
This small issue actually broke my bootloader so I was not able to
quickly figure out what had happened.
Details about my installation as follows:
lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
** Affects: ubuntu-docs (Ubuntu)
Importance: Undecided
Status: New
-- /bugs.launchpad .net/bugs/ 1030085
You received this bug notification because you are subscribed to ubuntu-
docs in Ubuntu.
https:/
Title:
Password protected menu has incorrect usage of the --users tag
Status in “ubuntu-docs” package in Ubuntu:
New
Bug description: /help.ubuntu. com/community/ Grub2/Passwords #Protecting_ Menuentries,
At the page
https:/
Protecting Menuentries section there are following mistakes:
1. Adding Protection to Ubuntu Entries subsection
A piece of instruction reads
Add --users :
printf "menuentry '${title}' ${CLASS} --users "" {\n" "${os}"
"${version}"
Actually it should be --users \"\"
2. Adding Protection to Other Entries subsection
Instructions in the box read:
sudo sed 's/--class os /--class os --users /' -i /etc/grub.d/30_os-
prober
I think --users should also be changed as in the section above (I
did not test this).
The thing is that in case of plain menuentry instruction (without
printf) --users "" work fine. But if there's printf in front of it the
actual menuentry is generated in grub.cfg without those quotes. An
example of broken configuration is below:
menuentry 'Ubuntu, with Linux 3.2.0-27- generic- pae (recovery mode)'
--class ubuntu --class gnu-linux --class gnu --class os --users {
This small issue actually broke my bootloader so I was not able to
quickly figure out what had happened.
Details about my installation as follows:
lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
To manage notifications about this bug go to: /bugs.launchpad .net/ubuntu/ +source/ ubuntu- docs/+bug/ 1030085/ +subscription...
https:/