← Back to team overview

documentation-packages team mailing list archive

[Bug 1030085] Re: Password protected menu has incorrect usage of the --users tag


Hi Anton, and thanks for your report!

Please note that the page in question is a wiki page which anybody can edit - including you. ;-)
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

You received this bug notification because you are a member of
Documentation Packages, which is subscribed to ubuntu-docs in Ubuntu.

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

Status in “ubuntu-docs” package in Ubuntu:

Bug description:
  At the page
  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-

  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: