[Bug 774558] New: The Grub2 File /etc/default/grub has incorrect File Permissions - Please change to chmod 747
https://bugzilla.novell.com/show_bug.cgi?id=774558 https://bugzilla.novell.com/show_bug.cgi?id=774558#c0 Summary: The Grub2 File /etc/default/grub has incorrect File Permissions - Please change to chmod 747 Classification: openSUSE Product: openSUSE 12.2 Version: RC 2 Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: jmcdaniel3@austin.rr.com QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1 The Grub2 configuration file /etc/default/grub has the wrong file permissions to allow the request of help as a standard user for the command: /usr/sbin/grub2-install --help If you execute the command: sudo chmod 747 /etc/default/grub The help request will work properly for you. Reproducible: Always Steps to Reproduce: 1. open terminal as normal user 2. /usr/sbin/grub2-install --help 3. Actual Results: Help does not work due to permissions error Expected Results: james@linux-bfx1:~> /usr/sbin/grub2-install --help Usage: grub2-install [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --modules=MODULES pre-load specified modules MODULES --boot-directory=DIR install GRUB images under the directory DIR/grub2 instead of the /boot/grub2 directory --target=TARGET install GRUB for TARGET platform [default=current] --directory=DIR use GRUB images from DIR. Takes precedence over target --grub-setup=FILE use FILE as grub-setup --grub-mkimage=FILE use FILE as grub-mkimage --grub-mkrelpath=FILE use FILE as grub-mkrelpath --grub-probe=FILE use FILE as grub-probe --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --recheck delete device map if it already exists --force install even if problems are detected --force-file-id use identifier file even if UUID is available --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --no-nvram don't update the `boot-device' NVRAM variable. This option is only available on IEEE1275 targets. --removable the installation device is removable. This option is only available on EFI. --bootloader-id=ID the ID of bootloader. This option is only available on EFI. --efi-directory=DIR use DIR as the EFI System Partition root. INSTALL_DEVICE must be system device filename. grub2-install copies GRUB images into /boot/grub2, and uses grub-setup to install grub into the boot sector. Use this command to fix the problem: sudo chmod 747 /etc/default/grub -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774558 https://bugzilla.novell.com/show_bug.cgi?id=774558#c Jiri Srain <jsrain@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@suse.com |mchang@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774558 https://bugzilla.novell.com/show_bug.cgi?id=774558#c1 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |suse-beta@cboltz.de InfoProvider| |jmcdaniel3@austin.rr.com --- Comment #1 from Christian Boltz <suse-beta@cboltz.de> 2012-08-13 01:20:45 CEST --- 747 would allow everybody (well, everybody who is _not_ member of the "root" group) to modify the file. Additionally, I don't see the need for x permissions on a config file. That said - "/usr/sbin/grub2-install --help" works without problems here (factory from 2012-08-02) with the default 644 permissions on /etc/default/grub James, what's the exact error message you see? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774558 https://bugzilla.novell.com/show_bug.cgi?id=774558#c2 James McDaniel <jmcdaniel3@austin.rr.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|jmcdaniel3@austin.rr.com | --- Comment #2 from James McDaniel <jmcdaniel3@austin.rr.com> 2012-08-13 01:36:41 UTC --- Thank you Christian for taking the time to look at this issue. Instead of using 747, I should have asked for 755. When I did a quick look, I had the value matrix turned on its side, my mistake. Basically I just did a fresh install of openSUSE 12.2 RC2 and in terminal I can run this command I get: james@linux-3qm9:~> ls -l /etc/default/grub -rw------- 1 root root 1803 Aug 13 2012 /etc/default/grub I think this is a 600 setting perhaps by default. With this default, I get this output for help. james@linux-3qm9:~> /usr/sbin/grub2-install --help /usr/sbin/grub2-install: line 69: /etc/default/grub: Permission denied If I check out one of the grub2 file permissions, here is what I find: james@linux-3qm9:~> ls -l /usr/sbin/grub2-install -rwxr-xr-x 1 root root 33029 Jul 30 13:43 /usr/sbin/grub2-install In fact, all of the grub2 files seem to be set for 755 as best as I can tell. If I then run this command: james@linux-3qm9:~> sudo chmod 755 /etc/default/grub james@linux-3qm9:~> ls -l /etc/default/grub -rwxr-xr-x 1 root root 1803 Aug 13 2012 /etc/default/grub Now I get this: james@linux-3qm9:~> /usr/sbin/grub2-install --help Usage: grub2-install [OPTION] [INSTALL_DEVICE] Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --modules=MODULES pre-load specified modules MODULES --boot-directory=DIR install GRUB images under the directory DIR/grub2 instead of the /boot/grub2 directory --target=TARGET install GRUB for TARGET platform [default=current] --directory=DIR use GRUB images from DIR. Takes precedence over target --grub-setup=FILE use FILE as grub-setup --grub-mkimage=FILE use FILE as grub-mkimage --grub-mkrelpath=FILE use FILE as grub-mkrelpath --grub-probe=FILE use FILE as grub-probe --allow-floppy make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --recheck delete device map if it already exists --force install even if problems are detected --force-file-id use identifier file even if UUID is available --disk-module=MODULE disk module to use (biosdisk or native). This option is only available on BIOS target. --no-nvram don't update the `boot-device' NVRAM variable. This option is only available on IEEE1275 targets. --removable the installation device is removable. This option is only available on EFI. --bootloader-id=ID the ID of bootloader. This option is only available on EFI. --efi-directory=DIR use DIR as the EFI System Partition root. INSTALL_DEVICE must be system device filename. grub2-install copies GRUB images into /boot/grub2, and uses grub-setup to install grub into the boot sector. Report bugs to <bug-grub@gnu.org>. I have a bash utility called grub2cmd I am working on in the openSUSE forums, trying to enhance the ability to use and work with grub2. http://forums.opensuse.org/blogs/jdmcdaniel3/gnu-grub2-command-listing-helpe... I think I should be able to get grub2 command help without being root and I think all of the grub2 files should have the same permissions perhaps, but I admit to not being the expert on this issue. For my bash utility, I want to be a standard user, for even help in grub2cmd, unless you must be root for some command, and then I am just using sudo. Anyway, that is what brought up this issue in the first place. I very much appreciate your attention to this very minor issue. Thank You, James McDaniel -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774558 https://bugzilla.novell.com/show_bug.cgi?id=774558#c3 Jeffrey Cheung <jcheung@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED CC| |jcheung@suse.com Resolution| |WONTFIX --- Comment #3 from Jeffrey Cheung <jcheung@suse.com> 2014-02-11 03:03:05 UTC --- With the release of the gnumeric on January 27th, 2014 the SUSE sponsored maintenance of openSUSE 12.2 has ended. openSUSE 12.2 is now officially discontinued and out of support by SUSE. If encountered the same problem, please create a new bugzilla againist openSUSE 13.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com