1

Im trying to set an administration password to just some of the entries of the grub.So far I manage to set a password to every entry to the grub by editing the /etc/grub/01_users files. So now, I need to configure some of the entries to not ask for credentials. Apparently there's the option --unprotected, but i just don't know where should I place it.

1 Answer 1

1

Each menu entry that you want to release for "the public" needs this entry. There's quite good explanation in the Red Hat System Admin Manual. So, in essence search for lines in /boot/grub.cfg containing menuentry and add --unrestricted, e.g.

menuentry 'OS with unrestricted access' --unrestricted {
    ...
}

Unfortunately, grub does not yet offer anything beyond editing the output of grub-mkconfig manually.

4
  • yes, but in which file?Because my 40_custom is empty
    – Xhark
    Commented Sep 26, 2016 at 9:24
  • you have to edit /boot/grub.cfg. See my edit. Commented Sep 26, 2016 at 9:44
  • Dont think thats a good idea.That file is rewritten every time the grub is updated.
    – Xhark
    Commented Sep 26, 2016 at 10:10
  • I know. Yet, there is currently no other way (known to me). You may script your edit if the menu entries under consideration have unique strings that you can search for. Commented Sep 26, 2016 at 10:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .