** Description changed: 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 + + --------------------------------------------------------- + ===Adding Protection to Ubuntu Entries subsection=== Add --users : - printf "menuentry '${title}' ${CLASS} --users "" {\n" "${os}" - "${version}" - + 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: + --------------------------------------------------------- + ===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: + + 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
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1030085 Title: Password protected menu has incorrect usage of the --users tag To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-docs/+bug/1030085/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs