Page 1 of 1

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

Posted: Sun 16 Nov 2014, 08:10
by fabrice_035
Hi,

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


Regard.

Encrypting Save File

Posted: Sun 16 Nov 2014, 08:41
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

Posted: Sun 16 Nov 2014, 09:17
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.

Posted: Sun 16 Nov 2014, 11:08
by fabrice_035
resolved: i have add script in etc/rc.d/rc.local wait for password before load startx

Posted: Sun 16 Nov 2014, 11:26
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

Posted: Sun 16 Nov 2014, 12:56
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.

Posted: Sun 16 Nov 2014, 13:03
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

Posted: Tue 01 Jan 2019, 08:21
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!

Posted: Tue 08 Jan 2019, 20:58
by rockedge
nice tip...thanks

Posted: Fri 11 Jan 2019, 22:16
by sickpig
most welcome :)

Posted: Mon 14 Jan 2019, 01:26
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

.