getting error msg: need to be root to run this

Asked by zeno on 2011-02-18

After using this app a few times, began to get error message:

"grub-mkconfig couldn't be executed successfully. You must run this as root!"

Re-installed the app after trying other workarounds, without success. Is this a bug?

Geoffree

Question information

Language:
English Edit question
Status:
Open
For:
Grub Customizer Edit question
Assignee:
Daniel Richter Edit question
Last query:
2011-04-11
Last reply:
2011-02-20

what happens, if you run:

sudo grub-mkconfig

…from the command line?

zeno (geoffrey-froner) said : #2

On 02/18/2011 03:04 PM, Daniel Richter wrote:
> Your question #145919 on Grub Customizer changed:
> https://answers.launchpad.net/grub-customizer/+question/145919
>
> Status: Open => Needs information
>
> Daniel Richter requested for more information:
> what happens, if you run:
>
> sudo grub-mkconfig
>
> …from the command line?
>
Thank you Daniel for replying. Here's another thing:

When I now invoke grub-customizer a request for password box displays,
I type in the password, the customizer screen displays, the bar at the
bottom grows to the right indicating launching, it gets to the end, and
the screen vanishes. Just like that. Quite rude. What? The splash
screen at log-in is still very nice thank you. But it would be groovy
to understand what is happening.

Geof free

zeno (geoffrey-froner) said : #3

On 02/18/2011 03:04 PM, Daniel Richter wrote:
> Your question #145919 on Grub Customizer changed:
> https://answers.launchpad.net/grub-customizer/+question/145919
>
> Status: Open => Needs information
>
> Daniel Richter requested for more information:
> what happens, if you run:
>
> sudo grub-mkconfig
>
> …from the command line?
>
I entered your suggesed command and I got the following:

geoff@zeno:~$ sudo grub-mkconfig
Generating grub.cfg ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
   set have_grubenv=true
   load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
   set saved_entry="${prev_saved_entry}"
   save_env saved_entry
   set prev_saved_entry=
   save_env prev_saved_entry
   set boot_once=true
fi

function savedefault {
   if [ -z "${boot_once}" ]; then
     saved_entry="${chosen}"
     save_env saved_entry
   fi
}

function recordfail {
   set recordfail=1
   if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then
save_env recordfail; fi; fi
}

function load_video {
   insmod vbe
   insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
if loadfont /usr/share/grub/unicode.pf2 ; then
   set gfxmode=640x480
   load_video
   insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
   set timeout=-1
else
   set timeout=12
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
using custom appearance settings
Found background image: cezanne.mt-provence.jpg
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
insmod jpeg
if background_image /boot/grub/cezanne.mt-provence.jpg ; then
   set color_normal=white/blue
   set color_highlight=black/light-gray
else
   set menu_color_normal=white/black
   set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux_proxy ###
Found linux image: /boot/vmlinuz-2.6.35-27-generic
Found initrd image: /boot/initrd.img-2.6.35-27-generic
Found linux image: /boot/vmlinuz-2.6.35-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.35-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.35-26-virtual
Found initrd image: /boot/initrd.img-2.6.35-26-virtual
Found linux image: /boot/vmlinuz-2.6.35-26-generic
Found initrd image: /boot/initrd.img-2.6.35-26-generic
Found linux image: /boot/vmlinuz-2.6.35-25-generic
Found initrd image: /boot/initrd.img-2.6.35-25-generic
menuentry "Ubuntu, with Linux 2.6.35-27-generic" --class ubuntu --class
gnu-linux --class gnu --class os {
     recordfail
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     linux /boot/vmlinuz-2.6.35-27-generic
root=UUID=6e3455b0-66d3-4a09-862a-6ba10e6662aa ro
     initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry "Ubuntu, with Linux 2.6.35-27-generic (recovery mode)" --class
ubuntu --class gnu-linux --class gnu --class os {
     recordfail
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     echo 'Loading Linux 2.6.35-27-generic ...'
     linux /boot/vmlinuz-2.6.35-27-generic
root=UUID=6e3455b0-66d3-4a09-862a-6ba10e6662aa ro single
     echo 'Loading initial ramdisk ...'
     initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry "Ubuntu, with Linux 2.6.35-26-generic-pae" --class ubuntu
--class gnu-linux --class gnu --class os {
     recordfail
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     linux /boot/vmlinuz-2.6.35-26-generic-pae
root=UUID=6e3455b0-66d3-4a09-862a-6ba10e6662aa ro
     initrd /boot/initrd.img-2.6.35-26-generic-pae
}
menuentry "Ubuntu, with Linux 2.6.35-26-generic-pae (recovery mode)"
--class ubuntu --class gnu-linux --class gnu --class os {
     recordfail
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     echo 'Loading Linux 2.6.35-26-generic-pae ...'
     linux /boot/vmlinuz-2.6.35-26-generic-pae
root=UUID=6e3455b0-66d3-4a09-862a-6ba10e6662aa ro single
     echo 'Loading initial ramdisk ...'
     initrd /boot/initrd.img-2.6.35-26-generic-pae
}
menuentry "Ubuntu, with Linux 2.6.35-26-virtual" --class ubuntu --class
gnu-linux --class gnu --class os {
     recordfail
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     linux /boot/vmlinuz-2.6.35-26-virtual
root=UUID=6e3455b0-66d3-4a09-862a-6ba10e6662aa ro
     initrd /boot/initrd.img-2.6.35-26-virtual
}
menuentry "Ubuntu, with Linux 2.6.35-26-virtual (recovery mode)" --class
ubuntu --class gnu-linux --class gnu --class os {
     recordfail
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     echo 'Loading Linux 2.6.35-26-virtual ...'
     linux /boot/vmlinuz-2.6.35-26-virtual
root=UUID=6e3455b0-66d3-4a09-862a-6ba10e6662aa ro single
     echo 'Loading initial ramdisk ...'
     initrd /boot/initrd.img-2.6.35-26-virtual
}
menuentry "Ubuntu, with Linux 2.6.35-26-generic" --class ubuntu --class
gnu-linux --class gnu --class os {
     recordfail
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     linux /boot/vmlinuz-2.6.35-26-generic
root=UUID=6e3455b0-66d3-4a09-862a-6ba10e6662aa ro
     initrd /boot/initrd.img-2.6.35-26-generic
}
menuentry "Ubuntu, with Linux 2.6.35-26-generic (recovery mode)" --class
ubuntu --class gnu-linux --class gnu --class os {
     recordfail
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     echo 'Loading Linux 2.6.35-26-generic ...'
     linux /boot/vmlinuz-2.6.35-26-generic
root=UUID=6e3455b0-66d3-4a09-862a-6ba10e6662aa ro single
     echo 'Loading initial ramdisk ...'
     initrd /boot/initrd.img-2.6.35-26-generic
}
### END /etc/grub.d/10_linux_proxy ###

### BEGIN /etc/grub.d/20_linux_xen_proxy ###
### END /etc/grub.d/20_linux_xen_proxy ###

### BEGIN /etc/grub.d/20_memtest86+_proxy ###
Found memtest86+ image: /boot/memtest86+.bin
menuentry "Memory test (memtest86+)" {
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos5)'
     search --no-floppy --fs-uuid --set 6e3455b0-66d3-4a09-862a-6ba10e6662aa
     linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+_proxy ###

### BEGIN /etc/grub.d/30_os-prober_proxy ###
Found Ubuntu 10.10 (10.10) on /dev/sda1
menuentry "Ubuntu, with Linux 2.6.35-27-generic (on /dev/sda1)" {
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos1)'
     search --no-floppy --fs-uuid --set e900a01d-379b-4beb-b33a-23e57ecac865
     linux /boot/vmlinuz-2.6.35-27-generic
root=UUID=e900a01d-379b-4beb-b33a-23e57ecac865 ro quiet splash
     initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry "Ubuntu, with Linux 2.6.35-27-generic (recovery mode) (on
/dev/sda1)" {
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos1)'
     search --no-floppy --fs-uuid --set e900a01d-379b-4beb-b33a-23e57ecac865
     linux /boot/vmlinuz-2.6.35-27-generic
root=UUID=e900a01d-379b-4beb-b33a-23e57ecac865 ro single
     initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry "Ubuntu, with Linux 2.6.35-26-generic (on /dev/sda1)" {
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos1)'
     search --no-floppy --fs-uuid --set e900a01d-379b-4beb-b33a-23e57ecac865
     linux /boot/vmlinuz-2.6.35-26-generic
root=UUID=e900a01d-379b-4beb-b33a-23e57ecac865 ro quiet splash
     initrd /boot/initrd.img-2.6.35-26-generic
}
menuentry "Ubuntu, with Linux 2.6.35-26-generic (recovery mode) (on
/dev/sda1)" {
     insmod part_msdos
     insmod ext2
     set root='(hd0,msdos1)'
     search --no-floppy --fs-uuid --set e900a01d-379b-4beb-b33a-23e57ecac865
     linux /boot/vmlinuz-2.6.35-26-generic
root=UUID=e900a01d-379b-4beb-b33a-23e57ecac865 ro single
     initrd /boot/initrd.img-2.6.35-26-generic
}
### END /etc/grub.d/30_os-prober_proxy ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply
type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
   source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
done
geoff@zeno:~$

Hmm… grub-mkconfig seems to work correctly. How did you solve the first problem ("grub-mkconfig couldn't be executed successfully. You must run this as root!")?

Please create an archive (zip/tar.gz) of your /etc/grub.d directory and attach it here. This may be a problem of your grub configuration.

zeno (geoffrey-froner) said : #5

On 02/18/2011 06:15 PM, Daniel Richter wrote:
> Your question #145919 on Grub Customizer changed:
> https://answers.launchpad.net/grub-customizer/+question/145919
>
> Status: Open => Needs information
>
> Daniel Richter requested for more information:
> Hmm… grub-mkconfig seems to work correctly. How did you solve the first
> problem ("grub-mkconfig couldn't be executed successfully. You must run
> this as root!")?
>
> Please create an archive (zip/tar.gz) of your /etc/grub.d directory and
> attach it here. This may be a problem of your grub configuration.
>
Daniel, Here is the tarred zipped grub.d as you requested. Hope it
sheds light.

Thanks

Geoff

I've sent you an e-mail. Did you get it?

telovin (vinaya-ou-live) said : #7

Hi zeon,
I also have the same problem!

zeno (geoffrey-froner) said : #8

I tried again just now and did not have reject msg. Now to see if the
changes are reflected in the monitor.
> Your question #145919 on Grub Customizer changed:
> https://answers.launchpad.net/grub-customizer/+question/145919
>
> telovin posted a new comment:
> Hi zeon,
> I also have the same problem!
>

Can you help with this problem?

Provide an answer of your own, or ask zeno for more information if necessary.

To post a message you must log in.