LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-11-2013, 05:59 AM   #1
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Rep: Reputation: 2
Setting GRUB2 Password on Debian Squeeze (6.0.5)


To generate the hashed password run the following and enter the password you want to use:

grub-mkpasswd-pbkdf2

Example output:

grub.pbkdf2.sha512.10000.AKSDAKSDJ939302502NKJKANVKANVWIEN2034928345092835ADSIFUA09UFN23548098DF0SDF LKSJDRO0395203WELRFISDUF09U45


Then edit /etc/grub.d/40_custom and append the following lines to the end of the file. I am using the user root here in this instance. It is not the same as the system's root account and you can create multiple accounts if you want with whatever names you wish. Make sure you replace the entry after root with your own output from the grub-mkpasswd-pbkdf2 command.

set superusers="root"
password_pbkdf2 root grub.pbkdf2.sha512.10000.AKSDAKSDJ939302502NKJKANVKANVWIEN2034928345092835ADSIFUA09UFN23548098DF0SDF LKSJDRO0395203WELRFISDUF09U45


Once you have saved that run update-grub and reboot your system. When it gets to the boot menu then you should try to edit the entries and see if it asks for your username and password in order to test the configuration.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GRUB2 Debian Squeeze change boot order? prudra Debian 9 10-07-2011 12:21 AM
LXer: How To Set Up Software RAID1 On A Running System (Incl. GRUB2 Configuration) (Debian Squeeze) LXer Syndicated Linux News 0 06-09-2011 04:40 PM
[SOLVED] GRUB2 Read Error (Debian Squeeze) Dark_Wolf Linux - Software 36 03-07-2011 07:46 PM
Debian Squeeze Grub2 Problem -> error: out of partition michalng Debian 4 01-09-2011 02:41 AM
LXer: Debian Squeeze cleans up the grub2 wallpaper in desktop-base, and we're a bit closer to Stable LXer Syndicated Linux News 0 01-04-2011 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration