https://bugzilla.novell.com/show_bug.cgi?id=774558
https://bugzilla.novell.com/show_bug.cgi?id=774558#c2
James McDaniel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|jmcdaniel3@austin.rr.com |
--- Comment #2 from James McDaniel 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 .
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.