Password protected menu has incorrect usage of the --users tag

Bug #1030085 reported by Anton Pushkarev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-docs (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

At the page https://help.ubuntu.com/community/Grub2/Passwords#Protecting_Menuentries, Protecting Menuentries section there are following mistakes:

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.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

Tags: wiki
Revision history for this message
bab188d (bkhosi) wrote : Fwd: [Bug 1030085] [NEW] Password protected menu has incorrect usage of the --users tag
Download full text (3.1 KiB)

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
https://help.ubuntu.com/community/Grub2/Passwords#Protecting_Menuentries,
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

--
You received this bug notification because you are subscribed to ubuntu-
docs in Ubuntu.
https://bugs.launchpad.net/bugs/1030085

Title:
  Password protected menu has incorrect usage of the --users tag

Status in “ubuntu-docs” package in Ubuntu:
  New

Bug description:
  At the page
  https://help.ubuntu.com/community/Grub2/Passwords#Protecting_Menuentries,
  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:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/1030085/+subscription...

Read more...

John Kim (kotux)
tags: added: wiki
John Kim (kotux)
description: updated
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi Anton, and thanks for your report!

Please note that the page in question is a wiki page which anybody can edit - including you. ;-)
https://help.ubuntu.com/community/WikiGuide
Since you seem to know how it should be changed, it would be great if you could fix it.

Due to the nature of the community help wiki, you can't request changes to it in the form of bug reports.

Changed in ubuntu-docs (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.