View Issue Details

IDProjectCategoryView StatusLast Update
0007478CentOS-7grub2public2014-08-08 16:03
ReporterBerkhaig Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSCentOSOS Version7.0.1406
Summary0007478: GRUB 2 --users and --unrestricted options don't work
DescriptionGRUB 2 --users and --unrestricted options don't work. The --unrestricted option doesn't allow access for anyone and --users option doesn't grant access for indicated users.
Steps To Reproduce1. Open the /etc/grub.d/40_custom and append the following

set superusers="john"
password john john
password jack jack

menuentry "Custom Entry 1" --users "" {
    linux16 /vmlinuz-3.10.0-123.el7.x86_64
    initrd16 /initramfs-3.10.0-123.el7.x86_64.img
}

menuentry "Custom Entry 2" --unrestricted {
    linux16 /vmlinuz-3.10.0-123.el7.x86_64
    initrd16 /initramfs-3.10.0-123.el7.x86_64.img
}

menuentry "Custom Entry 3" --users "jack" {
    linux16 /vmlinuz-3.10.0-123.el7.x86_64
    initrd16 /initramfs-3.10.0-123.el7.x86_64.img
}

2. Run 'grub2-mkconfig -o /boot/grub2/grub.cfg' to update the configuration file

3. Reboot and try to edit (with 'e' key) the custom GRUB2 menu entries.
   a. The 2nd one will ask you for a login and a password, though with --unrestricted option it isn't supposed to.
   b. The 3rd entry will not let you through with jack\jack login\password, though with --users option it is supposed to.
Additional InformationAll entries can be edited only using the superuser's login\password (john\john in this case).
Tagsgrub, grub2
abrt_hash
URL

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2014-08-08 16:01 Berkhaig New Issue
2014-08-08 16:02 Berkhaig Tag Attached: grub
2014-08-08 16:02 Berkhaig Tag Attached: grub2