[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how-to-password-protect-ubuntus-boot-loader



2012-10-07 02:02, contro opinion skrev:

3.*sudo update-grub*
in my debian ,i can't   sudo *update-grub* *,


Can you sudo *anything*? What is the error message?

I will assume you are seeing the message: "not in the sudoers file."

By default, debian does not use sudo to get admin privileges as a user, but instead changes user to be the root user, as described below.

there is no command update-grub in debian  (my system is debian6+grub1.99)

There is, but as a normal user you are not allowed to see that it exists.

$ update-grub
bash: update-grub: command not found

If you still can't see it as the root user, that _is_ a problem, and you should ask again.


how can i do now?
$ whoami
johan
$ su
Password: <TYPING THE ROOT PASSWORD>
# whoami
root
# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.5-trunk-amd64
Found initrd image: /boot/initrd.img-3.5-trunk-amd64
Found linux image: /boot/vmlinuz-3.2.0-3-amd64
Found initrd image: /boot/initrd.img-3.2.0-3-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
  No volume groups found
Found memdisk: /boot/memdisk
Imagepath /boot/images not found
done
# exit


Note that the prompt changes from $ to # when I change from user to root.




See <http://wiki.debian.org/sudo> for more info, including the command for activating sudo for your account: "adduser USERNAME sudo".

Regards

Johan


Reply to: