here is an article to tell setup password protect on ubuntu,i want to do that way on debian
the steps are as the followingÂ* on ubuntu
1.grub-mkpasswd-pbkdf
2.
Â*sudo nano /etc/grub.d/40_custom
Â*Â*Â* set superusers=â€nameâ€
Â*Â*Â* password_pbkdf2 name [long string from earlier]
3.sudo update-grub
4.sudo nano /etc/grub.d/
omitted
5.omitted
in my debian ,i can'tÂ*Â* sudo update-grub ,
there is no command update-grub in debianÂ* (my system is debian6+grub1.99)
how can i do now?
10-07-2012, 05:23 AM
Johan Grönqvist
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
--
To UNSUBSCRIBE, email to debian-laptop-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/k4r3k4$4su$1@ger.gmane.org
10-07-2012, 07:42 AM
Johan Grönqvist
how-to-password-protect-ubuntus-boot-loader
Firstly, you would typically reply to the list, and not to me
personally. Please only reply to the list from now on.
2012-10-07 09:23, contro opinion skrev:
root@debian:/home/tiger# grub-install -v
grub-install (GRUB) 1.99
root@debian:/home/tiger# update-grub
bash: update-grub: command not found
root@debian:/home/tiger#
how can i do now?
You might try update-grub2 instead?
The binary update-grub is provided by the packages
grub-legacy and grub-pc in debian 6 (I assume you are using the i386 or
amd64 architecture). Do you have any of them installed?
One way of seeing which packages are installed is to use aptitude:
The command 'aptitude search "grub ~i"' should show what grub-packages
you have installed.
If you ensure that the package grub-pc is installed, and you still fail
to run grub-install as root, then I have no more ideas right now.
Regards
Johan
--
To UNSUBSCRIBE, email to debian-laptop-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 50713275.5020808@matfys.lth.se">http://lists.debian.org/50713275.5020808@matfys.lth.se
On 7 Oct 2012 11:35, "contro opinion" <contropinion@gmail.com> wrote:
> i compiled the grub1.99 ,download tar package ,make and install it,
> must i* delete it and reinstall it ?
Update-grub is a script, that you might not have, especially if you compiled from source. The actual work is done by the command grub-mkconfig e.g.
$ grub-mkconfig -o /boot/grub/grub.cfg
There might be some 2's there after any of the grubs (grub2-mkconfig, /boot/grub2). Check which of the commands and directories do you have in your computer.
Daniel Landau
10-07-2012, 10:44 AM
contro opinion
how-to-password-protect-ubuntus-boot-loader
i delete the compiled grub,and install grub-pc 1.99
when i update-grub,
Found initrd image: /boot/initrd.img-2.6.32-5-486
* Parse error at byte 1 (line 1): unexpected token
how can i do?
root@debian:/home/tiger# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found linux image: /boot/vmlinuz-2.6.32-5-486
Found initrd image: /boot/initrd.img-2.6.32-5-486
* Parse error at byte 1 (line 1): unexpected token
Found Microsoft Windows XP Professional on /dev/sda1
done
2012/10/7 Daniel Landau <daniel.landau@iki.fi>
On 7 Oct 2012 11:35, "contro opinion" <contropinion@gmail.com> wrote:
> i compiled the grub1.99 ,download tar package ,make and install it,
> must i* delete it and reinstall it ?
Update-grub is a script, that you might not have, especially if you compiled from source. The actual work is done by the command grub-mkconfig e.g.
$ grub-mkconfig -o /boot/grub/grub.cfg
There might be some 2's there after any of the grubs (grub2-mkconfig, /boot/grub2). Check which of the commands and directories do you have in your computer.
Daniel Landau
10-07-2012, 05:39 PM
Johan Grönqvist
how-to-password-protect-ubuntus-boot-loader
2012-10-07 12:44, contro opinion skrev:
i delete the compiled grub,and install grub-pc 1.99
when i update-grub,
Found initrd image: /boot/initrd.img-2.6.32-5-486
Parse error at byte 1 (line 1): unexpected token
how can i do?
I assume this means that there is a problem in the initrd, and I think
that is normally updated by running "update-initramfs -u -k all"
(assuming that you have the relevant debian packages installed).
but I feel I am talking about things I do not understang well enough here...
Regards
Johan
--
To UNSUBSCRIBE, email to debian-laptop-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/k4seo9$sha$1@ger.gmane.org