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 Mon 01 Sep 2014, 08:33
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HOWTO add login and password when booting Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Author Message
Bruce B


Joined: 18 May 2005
Posts: 11092
Location: The Peoples Republic of California

PostPosted: Thu 30 Aug 2007, 03:44    Post subject:  HOWTO add login and password when booting Puppy  

Puppy by default boots straight into the root account without any intervention from this user. If for some reason you want Puppy to stop require a login and password, this very simple (simplistic?) post shows you how to do it.

Here is the default /etc/inittab file:

Code:
::sysinit:/etc/rc.d/rc.sysinit
tty1::respawn:/sbin/getty -n -l /bin/autologinroot 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
::ctrlaltdel:/sbin/reboot


Here is the modified /etc/inittab file, changes on line 2 only:

Code:
::sysinit:/etc/rc.d/rc.sysinit
tty1::respawn:/sbin/getty 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
::ctrlaltdel:/sbin/reboot


After changing inittab, on the next boot, Puppy will stop and require a login. Login as root :)

Then it asks for the password, if no password has been set, just hit the enter key. If a password has been set, enter the password, then hit the enter key.

To set and change the password, on the command line do this:

# passwd root

Then follow the on screen instructions.

------------

This should be a reasonable deterent to prevent casual booting of your Puppy, especially for people not familiar with Linux.

Combined with other measures and techniques, Puppy can be hard to access for even fairly adept users.
Back to top
View user's profile Send private message 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Thu 30 Aug 2007, 04:19    Post subject: Re: HOWTO add login and password when booting Puppy  

Bruce B wrote:
This should be a reasonable deterent to prevent causal booting of your Puppy, especially for people not familiar with Linux.

Combined with other measures and techniques, ...


i couldn't agree more. here is some info i gleaned off the forum and put into a post.

http://www.murga-linux.com/puppy/viewtopic.php?t=18639

Bruce B wrote:
Puppy can be hard to access for even fairly adept users.


that made me chuckle as sometimes i still have trouble booting myself and i've been here 2+ years. it's great to be able to help fix it.
Back to top
View user's profile Send private message 
trapster


Joined: 28 Nov 2005
Posts: 1999
Location: Maine, USA

PostPosted: Thu 30 Aug 2007, 06:54    Post subject:  

After I set up xlock, I just put /usr/sbin/xlock into /.xinitrc before the exec currentwm line.
When I don't want to use it, I just comment it out.

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox

Last edited by trapster on Fri 23 Nov 2007, 07:26; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
PaulBx1

Joined: 16 Jun 2006
Posts: 2308
Location: Wyoming, USA

PostPosted: Tue 25 Sep 2007, 09:21    Post subject:  

This is pretty modest protection. About as good as a BIOs password. However it does not protect your data, especially in the case where you are booting off an easily-stealable or -losable flash drive. For that you need an encrypted pupsave, and for data off the pupsave you need truecrypt or something of that nature. I suppose you could use the same programs used for encrypting a pupsave to make another encrypted volume as well.

I don't agree with Lobster's contention on that other thread, that encryption (even "heavy" encryption) slows your computer. I haven't noticed it. Maybe in some situations, like heavy compiling work, it might be noticed, but not for the usual web surfing and email...
Back to top
View user's profile Send private message 
Vettephil

Joined: 15 Oct 2007
Posts: 40

PostPosted: Wed 21 Nov 2007, 23:36    Post subject:  

trapster wrote:
After I set up xlock, I just put /usr/sbin/xlock into /.initrc before the exec currentwm line.
When I don't want to use it, I just comment it out.


I tried this in 3.01 Retro but it did not work. Is there an updated solution for the latest Puppy? (Bruce B's option above does still work.)

Thanks!
-PHIL

_________________
Can You Picture A Better World?
http://www.PhotographersWithoutBorders.org
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Thu 22 Nov 2007, 01:39    Post subject:  

PaulBx1 wrote:
I don't agree with Lobster's contention on that other thread, that encryption (even "heavy" encryption) slows your computer. I haven't noticed it. Maybe in some situations, like heavy compiling work, it might be noticed, but not for the usual web surfing and email...


That is good news. Smile

I just had an idea
It should be relatively easy to boot up into the screen saver?
that has a password . . .

(click top right on lock icon to see screen saver password options)

Cli wizards might tell you how to do that - or maybe you can figure it and tell us Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
trapster


Joined: 28 Nov 2005
Posts: 1999
Location: Maine, USA

PostPosted: Thu 22 Nov 2007, 08:04    Post subject:  

Vettephil -

I am currently using the xlock in puppy300 retro with no issues. It works with jwm and icewm.

Quote:
I just had an idea
It should be relatively easy to boot up into the screen saver?
that has a password . . .


This is how I use a password to keep the "kids" off it.
see my post above.

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Thu 22 Nov 2007, 11:32    Post subject:  

Quote:
This is how I use a password to keep the "kids" off it.
see my post above.


Embarassed

What a great idea I almost had Idea
and you implemented . . Shocked .

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Thu 22 Nov 2007, 18:47    Post subject:  

The default password for 'root' in Puppy 3.01 is 'woofwoof'.
I don't know what it is in earlier puppies.
Back to top
View user's profile Send private message Visit poster's website 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Fri 23 Nov 2007, 09:01    Post subject:  

in earlier puppies there is no password
I use CTRL-ALT-F2 a lot if X locks up
I was a bit thrown with 3.01 but remembered it from your blog on printers(?)

This could do with being a bit more visible.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
ll l ll lll ll l ll

Joined: 19 Jul 2009
Posts: 1

PostPosted: Mon 20 Jul 2009, 17:04    Post subject:
Subject description: want the login prompt at bootup to be hidden/camouflageed
 

well i have a silly request
i have puppy 4.2.1 on pen drive(8gb). pup save file is 512mb. ram 1gb. p4 3ghz.
Puppy displays "puppypc login:" (changed the inittab --> tty1::respawn:/sbin/getty 38400 tty1 ). i want to change this login prompt so that another user will not know that the sys is asking for username /pass.ie i want to change the words "puppypc login:" and "password" to something else like say a funny one liner, idiotic philosophy, puzzle, etc that is totally unrelated to login. i have no serious reasons to do this other than to amuse myself. ( i find this playing around to be a better way to learn )
i tried pfind, grep and murga-linux.com to locate the file containing these words but no sucess. I am new to the internal working of unix but eventually googled to /etc/inittab, getty, /etc/issue, issue escapes, /bin/login etcetra. (i couldnt open /bin/login file in geany). learnt related things other than the one originally intended.

So my question:
How do i hide/camouflage the login prompt. It could be anything from funny to something that totally freaks out the unsuspecting user.Any pre-existing standard/classical pranks too are welcome. just show me the direction i will catch on.
Back to top
View user's profile Send private message 
Gorilla no baka


Joined: 26 Oct 2008
Posts: 234
Location: UK

PostPosted: Fri 16 Oct 2009, 08:43    Post subject:
Subject description: want the login prompt at bootup to be hidden/camouflageed
 

ll l ll lll ll l ll wrote:
well i have a silly request
i have puppy 4.2.1 on pen drive(8gb). pup save file is 512mb. ram 1gb. p4 3ghz.
Puppy displays "puppypc login:" (changed the inittab --> tty1::respawn:/sbin/getty 38400 tty1 ). i want to change this login prompt so that another user will not know that the sys is asking for username /pass.ie i want to change the words "puppypc login:" and "password" to something else like say a funny one liner, idiotic philosophy, puzzle, etc that is totally unrelated to login. i have no serious reasons to do this other than to amuse myself. ( i find this playing around to be a better way to learn )
i tried pfind, grep and murga-linux.com to locate the file containing these words but no sucess. I am new to the internal working of unix but eventually googled to /etc/inittab, getty, /etc/issue, issue escapes, /bin/login etcetra. (i couldnt open /bin/login file in geany). learnt related things other than the one originally intended.

So my question:
How do i hide/camouflage the login prompt. It could be anything from funny to something that totally freaks out the unsuspecting user.Any pre-existing standard/classical pranks too are welcome. just show me the direction i will catch on.



You mean like that?? I could have write there anything Puppy is not complaining..






Obviously you have not tried to search inside of the puppy first otherwise you would have find it in no time...


NO wonder nobody could be bothered to answer at something so obvious...

Well, it took me 5 minutes to find it and everyone around here knows that i am not a Linux native so to speak...

I recently came from Windows..

The file you need to modify is right under your nose.. you do not even have to ctrl +h to find it..


Lemme know if you found it ...If not i will just post the answer... Rolling Eyes Laughing

Cheers!

_________________


I'M IN MY OWN WORLD.
IT'S OK, THEY KNOW ME HERE..!!!
Back to top
View user's profile Send private message Visit poster's website 
Ed Howdershelt

Joined: 16 Apr 2011
Posts: 67
Location: Spring Hill, FL

PostPosted: Wed 20 Apr 2011, 22:18    Post subject: Re: HOWTO add login and password when booting Puppy  

re: passwords at bootup...

Do you keep your CDs in the same room as your computer?
If so, they can be found and used, particularly the Puppy CD.
Boot from that and you can likely run any of the Puppy progs on your HD.

Do your potential intruders have access to other Live CDs?
If so, they can bring one of their own and boot right past your password to snoop through your files.

However... you can password-protect or encrypt a deliberately misnamed file containing all your web-activity login infos.
Or... email it to yourself at a place like Yahoo Mail or Hotmail.
Login there, open the message, use the info, and close the website when finished.
When you shut down it will disappear.

You can also keep only your system files on the HD and keep all others containing any sensitive stuff on a flash drive or portable HD.

If your info is where someone can find it, it's vulnerable.

_________________
Ed Howdershelt - Abintra Press
Science Fiction & Semi-Fiction
Back to top
View user's profile Send private message Visit poster's website 
shadower_sc

Joined: 21 Apr 2010
Posts: 129
Location: Texas

PostPosted: Thu 21 Apr 2011, 15:00    Post subject: Password on Boot isn't secure  

Having a password on boot isn't secure in and of itself. The only way to have any real amount of security is having an encrypted file system that is password protected. Anyone with any reasonable amount of technological know how can get access to your data, if they have access to your physical computer.

This does come in handy, if you have small children who are just learning computers. This kind of protection would probably work to keep technophobes off your computer as well.

A simple password at boot would also keep your system fairly secure, if you had the physical machine locked in a cabinet or case of some kind. (Make sure the cabinet/case has plenty of ventilation.)
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11092
Location: The Peoples Republic of California

PostPosted: Wed 27 Apr 2011, 03:20    Post subject: Re: Password on Boot isn't secure  

shadower_sc wrote:
A simple password at boot would also keep your system fairly secure, if you had the physical machine locked in a cabinet or case of some kind. (Make sure the cabinet/case has plenty of ventilation.)


That's along the lines of what it would take to protect a computer from
knowledgeable and untrustworthy people who have physical access.

Remove the physical access.

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
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.0962s ][ Queries: 12 (0.0040s) ][ GZIP on ]