How to have Puppy require a password to load? (Solved)

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

How to have Puppy require a password to load? (Solved)

#1 Post by fabrice_035 »

Hi,

Can you tell me if it possible to add prompt to answer a password before load puppy ?


Regard.

peterw
Posts: 430
Joined: Wed 19 Jul 2006, 12:12
Location: UK

Encrypting Save File

#2 Post by peterw »

Hi

It is possible to password protect your data. When you first shut a Puppy down your are asked if you want a Save File. If you say Yes then you will go through a series of questions about its size and where you want to save it. One of them will be if you want to encrypt it. If you want this select it and enter your password. Now when you next switch it on the system will detect this and asked you for your password before it powers up.

This is an explanation of what is happening in the case of a frugal installation.
A frugal install has 2 or 3 directories in it: vmlinuz, initrd.gz and sometimes another .sfs file. These are the files needed to get Puppy going. These do not change as you use Puppy. Any changes and personal data is held in a save file. If you create a save file it will be of the form xxxxxsave.4fs. And of course this is the one that gets encrypted if you desire this.

Hope this helps.
Oh and by the way, if you want to get rid of what is saved you just delete the save file and power Puppy up and start again.

peterw

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#3 Post by fabrice_035 »

right, but i search a easy way. Where i can insert this script ?

Code: Select all

#!/bin/sh
for ((;;))
do
read -p "Password ?" choice

case "$choice" in 
  mypass ) echo "ok enter";break;;
  
  * ) echo "invalid";;
esac

done
Regard.

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#4 Post by fabrice_035 »

resolved: i have add script in etc/rc.d/rc.local wait for password before load startx

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#5 Post by mikeb »

if you want true password login you need to remove the autologinroot from /etc/init.

Drawback is that you have to run xwin/startx manually.

I have added slim graphical login manager but it involves making significant changes to the boot process.

mike

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#6 Post by fabrice_035 »

Fine,
it's possible add prompt with answer a password in init file in initrd.gz ?
Or before load initrd.gz ? only to understand because i found solution.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#7 Post by mikeb »

Well I thought you might be interested since you looked like a bit of an experimenter :)

By changing init to not autologin you are then using the standard login method that linux uses....the password is stored encrypted in /etc/shadow

You could also create non root users and login with those but puppy is not set up to handle that well.

You can alter it using passwd ...I believe its set to woofwoof as default.

mike

User avatar
sickpig
Posts: 25
Joined: Mon 31 Dec 2018, 10:53
Location: NSW

#8 Post by sickpig »

its an old post but i will reply in case anyone searches for it
i did by adding xlock to startup apps
but it will lock once X loads
i did not have any issue with that so it worked for me
cheers!

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#9 Post by rockedge »

nice tip...thanks

User avatar
sickpig
Posts: 25
Joined: Mon 31 Dec 2018, 10:53
Location: NSW

#10 Post by sickpig »

most welcome :)

User avatar
perdido
Posts: 1528
Joined: Mon 09 Dec 2013, 16:29
Location: ¿Altair IV , Just north of Eeyore Junction.?

#11 Post by perdido »

Consolidation of information.

How to add login and password to Tahrpup 6.0.5? [SOLVED]

The user originally referenced this post
HOWTO add login and password when booting Puppy

.

Post Reply