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

Using applications, configuring, problems
Post Reply
Message
Author
kpfuser
Posts: 207
Joined: Sun 19 Mar 2006, 15:02
Location: Mt Pelion, Greece

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

#1 Post by kpfuser »

Due to an unexpected turn of events, it has become necessary to add a password when booting Tahrpup 6.0.5. A search of relevant threads produced the following (http://murga-linux.com/puppy/viewtopic. ... 28&t=21338):
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
Once a login has been included in puppy's booting process, a login password can be added next from the command line.

The first problem encountered is that in Tahrpup 6.0.5 the /etc/inittab file looks a bit different than shown above, i.e.

Code: Select all

::sysinit:/etc/rc.d/rc.sysinit
tty1::respawn:/sbin/mingetty --autologin root tty1
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3
::ctrlaltdel:/sbin/reboot
The second problem is that editing tahrpup's /etc/inittab file so as to read

Code: Select all

::sysinit:/etc/rc.d/rc.sysinit
tty1::respawn:/sbin/mingetty 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3
::ctrlaltdel:/sbin/reboot
failed to produce the desired result. In my case, since I run tahrpup off a live CD, editing /etc/inittab as indicated above and remastering, produces a CD that does not boot at all (a dead CD perhaps?). Any suggestions for resolving the above?
Last edited by kpfuser on Mon 05 Dec 2016, 20:55, edited 1 time in total.
User avatar
perdido
Posts: 1528
Joined: Mon 09 Dec 2013, 16:29
Location: ¿Altair IV , Just north of Eeyore Junction.?

#2 Post by perdido »

Hi kpfuser,

Try using this as the modified Line2

Code: Select all

tty1::respawn:/sbin/mingetty tty1
So your modified /etc/inittab file will look like this

Code: Select all

::sysinit:/etc/rc.d/rc.sysinit
tty1::respawn:/sbin/mingetty tty1
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3
::ctrlaltdel:/sbin/reboot
Before you do this MAKE A BACKUP of your save file prior to modifying /etc/inittab

The default login and password for puppy are

Login: root
Password: woofwoof

When you type the password the letters will not show.

.
kpfuser
Posts: 207
Joined: Sun 19 Mar 2006, 15:02
Location: Mt Pelion, Greece

#3 Post by kpfuser »

Thanks perdido. Your suggestion was spot on! Thanks again!
User avatar
perdido
Posts: 1528
Joined: Mon 09 Dec 2013, 16:29
Location: ¿Altair IV , Just north of Eeyore Junction.?

#4 Post by perdido »

Excellent!
Thanks for reporting back.
Last edited by perdido on Wed 15 Apr 2020, 01:27, edited 1 time in total.
Koiedroehfal
Posts: 1
Joined: Sun 12 Apr 2020, 15:30

#5 Post by Koiedroehfal »

The default login and password for puppy are

Login: root
Password: woofwoof

When you type the password the letters will not show.
Is it also possible not show the login name (root) ?
How to achieve this with an "echo off" command ?
I've tried but no luck sofar.
Post Reply