Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 01 Sep 2015, 08:23
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to easily add password protection to GRUB
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
l0wt3ch

Joined: 23 Apr 2014
Posts: 95

PostPosted: Wed 22 Apr 2015, 12:42    Post subject:  How to easily add password protection to GRUB
Subject description: Secure your Puppy installation by adding a password to GRUB
 

Based on Karl Godt's thread here: http://www.murga-linux.com/puppy/viewtopic.php?t=97002&sid=bd7abb6a6782eadc130f54b37cfe516f

Wanna add password protection to your full install without installing a login manager? It's easy!

This tutorial assumes you already have grub installed.

Go to /boot/grub and rename menu.lst to menu-main.lst

Create a new menu.lst in the same folder (the "l" in "lst" is a lower-case L). Copy in this text:

Code:
hiddenmenu
timeout 0

default 0
fallback 1 2 3

title "Enter password"
 password yourpassword
 configfile (hd0,5)/boot/grub/menu-main.lst

title "Enter password"
 password yourpassword
 configfile (hd0,5)/boot/grub/menu-main.lst

title "Enter password"
 password yourpassword
 configfile (hd0,5)/boot/grub/menu-main.lst

title "Three times password failed"
 halt


Change "yourpassword" to whatever you want your password to be. Also change "hd0,5" to whatever partition you have Puppy installed. Remember that grub starts counting at 0, so if your installation is on sda3, it has to say "hd0,2".

That's it! Very Happy
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 195

PostPosted: Fri 24 Apr 2015, 00:24    Post subject:  

Being able to encrypt the drive is one thing but can we also somehow integrate this with a BIOS password so that other systems can't write to the drive without the password?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Fri 24 Apr 2015, 05:43    Post subject:  

cute.... even without the encrypted password its probably enough for most users.
Now if there were subsequent menus with a choice of save file/folder (can puppy do this?) then you could have login and user profiles all from grub.

Quite a nice sideways approach to the need..especially if a full colour boot menu is used.

Slim is a neat login manager if you ever get the urge.

Just to confirm this works perfectly with grub4dos and a frugal setup... not sure if legacy grub with a full install was being referenced.

mike

bummer...no graphical menu this way Sad ...oh well can't have everything
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11071

PostPosted: Sat 25 Apr 2015, 15:01    Post subject:  

Actually I noticed in grub4dos help list there is password --md5 so perhaps encryption is possible after all Smile

mike
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 619
Location: King's Lynn, UK.

PostPosted: Tue 23 Jun 2015, 17:29    Post subject:  

Hi, l0wt3ch.

Just out of curiosity, how could you make this work for a set-up, like mine, where there are multiple Pups.....all booted from Grub4DOS?

I run Tahrpup, Slacko 570, ETP's 'ChromeBook' Pup (v.2), and Precise 571. Oh,and just to add a little bit of spice to the mix, I also have SliTaz 4.0 on a small partition.....also booted from Grub4DOS (with a couple of small modifications to its Grub menu entry).

I assume that your solution here references a single-Puppy install?


Regards,

Mike. Wink

_________________
If the advice given has helped you, please have the courtesy to post back & say 'Thanks!' Wink Laughing
----------------------------------------------------

Back to top
View user's profile Send private message 
cimarron

Joined: 30 May 2013
Posts: 229

PostPosted: Wed 24 Jun 2015, 08:34    Post subject:  

These instructions seem to be for GRUB, not Grub4dos. But it looks like it is possible to add passwords (even encrypted) to Grub4dos boot entries:

Grub4dos Guide: Password Protecting Boot Options
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 619
Location: King's Lynn, UK.

PostPosted: Wed 24 Jun 2015, 08:58    Post subject:  

Thanks for that, Cimarron. I've had a look at the link, and it seems to be just what I'm looking for.

Cheers! Smile


Regards,

Mike.

_________________
If the advice given has helped you, please have the courtesy to post back & say 'Thanks!' Wink Laughing
----------------------------------------------------

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2617s ][ Queries: 11 (0.0131s) ][ GZIP on ]