https://bugzilla.redhat.com/show_bug.cgi?id=1336138
Bug ID: 1336138 Summary: System Administrator guide: Documentation of grubby commands must be run as root Product: Fedora Documentation Version: devel Component: system-administrator's-guide Severity: low Assignee: swadeley@redhat.com Reporter: fh.fedora@fhenry.fr QA Contact: docs-qa@lists.fedoraproject.org CC: swadeley@redhat.com
Description of problem:
In chapter: 21.4. Configuring GRUB 2 Using the grubby Tool
The following commands should be mentioned to be executed also as root, like the other ones, using a sharp caracter at begining of each command;
~]$ grubby --info=ALL
~]$ grubby --info /boot/vmlinuz-4.2.0-1.fc23.x86_64
grubby --remove-args="argX argY" --args="argA argB" --update-kernel /boot/kernel
~]$ grubby --info /boot/vmlinuz-4.2.0-1.fc23.x86_64
Otherwise, this error is displayed in the console:
Unable to access bootloader configuration file "/etc/grub2-efi.cfg": Permission denied
Version-Release number of selected component (if applicable):
Fedora 23 - System Administrator Guide
How reproducible:
Run command 'grubby --info /boot/vmlinuz-X.Y.Z-r.fc23.x86_64' as user
Steps to Reproduce: 1. 2. 3.
Actual results: Error: Unable to access bootloader configuration file "/etc/grub2-efi.cfg": Permission denied
Expected results: Command is executed without error
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1336138
Stephen Wadeley swadeley@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #1 from Stephen Wadeley swadeley@redhat.com --- Hello
Thank you for raising this bug
I tested again on Fed24 test VM and it works for me, but I do not have secure boot:
test@localhost ~]$ grubby --info=ALL index=0 kernel=/boot/vmlinuz-4.5.4-300.fc24.x86_64 args="ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-8" root=/dev/mapper/fedora-root initrd=/boot/initramfs-4.5.4-300.fc24.x86_64.img title=Fedora (4.5.4-300.fc24.x86_64) 24 (Workstation Edition)
others confirm your test, so it seems this is related to UEFI.
The grubby --info command occurs three times in the guide. I remember when I tested these commands when writing the chapter, that I thought it would be useful to know you could get this info from some remote user without asking them to become root.
I will therefore just make a note below the first occurrence of the command, but I will change the third one as that is after you already had to become root to update the ARGS
https://bugzilla.redhat.com/show_bug.cgi?id=1336138
Stephen Wadeley swadeley@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |ON_QA
--- Comment #2 from Stephen Wadeley swadeley@redhat.com --- commit 5416f33672175f46c37c100591657daf6b54b55d Author: Stephen Wadeley swadeley@redhat.com Date: Thu May 19 20:35:16 2016 +0200
On UEFI systems, all grubby commands must be as root
Bug 1336138 - System Administrator guide: Documentation of grubby commands must be run as root
https://bugzilla.redhat.com/show_bug.cgi?id=1336138
Stephen Wadeley swadeley@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |CURRENTRELEASE Last Closed| |2016-07-14 14:41:55
--- Comment #3 from Stephen Wadeley swadeley@redhat.com --- Hello
This has been published here: https://docs.fedoraproject.org/en-US/Fedora/24/html/System_Administrators_Gu...
Thank you
docs-qa@lists.fedoraproject.org