LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-23-2007, 08:07 AM   #1
nitinbaldi
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
authentication at grub


I am using Linux FC5. I am implementing multi user hibernation using Suspend2. In this each user can hibernate his session separately. As soon as he hibernates, I add a entry in grub.conf indicating that the user has hibernated. Now I want to authenticate the user at the grub stage itself. i.e. as soon as he selects his session at the grub, he must be prompted for a password.
Is there any way to do this?
 
Old 02-23-2007, 09:20 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Never tried it myself but there is a password command within Grub.

Straight off the Grub-0.97 Manual

Quote:
13.2.10 password
— Command: password [--md5] passwd [new-config-file]

If used in the first section of a menu file, disable all interactive editing control (menu entry editor and command-line) and entries protected by the command lock. If the password passwd is entered, it loads the new-config-file as a new config file and restarts the GRUB Stage 2, if new-config-file is specified. Otherwise, GRUB will just unlock the privileged instructions. You can also use this command in the script section, in which case it will ask for the password, before continuing. The option --md5 tells GRUB that passwd is encrypted with md5crypt (see md5crypt).
I ran into Grub4Dos that uses it as a way to prevent others to alter the Grub menu. Without the password one can alter the booting entries on-the-fly.

It should possible to nest a set of Grub menus so that a user must submit a password before he/she can progress to the next level of booting pre-determined alternatives.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication service cannot retrieve authentication info Moffett67 Linux - Software 3 12-13-2007 03:16 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
can some fc4 user mail his grub.conf and tell me how can i make this grub read this amolgupta Linux - Software 1 03-15-2006 04:04 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:07 PM.

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
Open Source Consulting | Domain Registration