-
Ask for password on boot
Dear friends,
I have installed knoppix in my hd manually (I wanted to save previous data already present in my disk), following the steps found at the end of the FAQ included in knoppix 3.6. Everything went OK, except some problems running lilo (They are still present:
/dev/mapper/control: open failed: No such device
Is device-mapper driver missing from kernel?).
Now the system boots ok BUT I can't make the system to ask for password at boot. It simply opens a root terminal, which is very inconvenient in terms of security. What can I do for solving this? Any idea?
Thank you in advance
Marcel
-
You better should not install manually, it was better
tar cpPvvf marcel.tar /home/marcel
instead, and cp marcel.tar somewhere/not_used_by_knoppix,
and later after knoppix-installer finished
tar xvvf marcel.tar
apropos password: to set one try to type in an open root terminal:
passwd root
and as root
passwd marcel
(or whatever your user name is)
hth
-
passwd on boot
Well, I thought on saving previously, but the data is really BIG (several GB) and my disk is not, so I decide to do this way. Now, what can I do?
I have already defined password for me and root (simply do Ctrl-Alt-F2, exec "passwd" and defining), also I included myself as regular user, deleted knopix user, changed some sripts. and it works VERY well, except this annoying "boot on root". It should be something simple, but I am lost. My last resort will be reinstall using knopix-installer, but if there are no ideas, I will do ...
Thank you.
Marcel
-
Hi Marcel,
I did some research and found out that you should inspect your /etc/inittab file especially the section simile to this:
1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1
2:2345:respawn:/bin/bash -login >/dev/tty2 2>&1 </dev/tty2
3:2345:respawn:/bin/bash -login >/dev/tty3 2>&1 </dev/tty3
4:2345:respawn:/bin/bash -login >/dev/tty4 2>&1 </dev/tty4
it should rather look like this:
1:12345:respawn:/sbin/getty 38400 tty1
2:2345:respawn:/sbin/getty 38400 tty2
3:2345:respawn:/sbin/getty 38400 tty3
4:2345:respawn:/sbin/getty 38400 tty4
5:2345:respawn:/sbin/getty 38400 tty5
6:2345:respawn:/sbin/getty 38400 tty6
( "-login" is maybe crucial here)
in my file these two lines are preceded with #
w5:5:wait:/bin/sleep 2
x5:5:wait:/etc/init.d/xsession start
but this maybe has no influence.
further, look at your /etc/passwd and /etc/shadow files (as root).
in /etc/shadow there should be an odd string for root i.e KllMTzUYwaaP if root password is correctly set:
Example:
password not set:
root:*:11456:0:99999:7:::
password set:
root:KllMTzUYwaaPr:12672:0:99999:7:::
The same is alike for each user whos password is set.
FYI here is the complete difference between CD version of /etc/inittab and hd-installed version using knoppix-installer (issued diff command) :
root@box:/home/tempo#diff /etc/inittab /home/tempo/CD-etc/inittab
22c22
< l0:0:wait:/etc/init.d/rc 0
---
> l0:0:wait:/etc/init.d/knoppix-halt
28c28
< l6:6:wait:/etc/init.d/rc 6
---
> l6:6:wait:/etc/init.d/knoppix-reboot
31c31
< ca::ctrlaltdel:/sbin/shutdown -r now
---
> ca::ctrlaltdel:/etc/init 0
48,53c48,53
< 1:12345:respawn:/sbin/getty 38400 tty1
< 2:2345:respawn:/sbin/getty 38400 tty2
< 3:2345:respawn:/sbin/getty 38400 tty3
< 4:2345:respawn:/sbin/getty 38400 tty4
< 5:2345:respawn:/sbin/getty 38400 tty5
< 6:2345:respawn:/sbin/getty 38400 tty6
---
> # 4 virtual consoles with immortal shells
> 1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1
> 2:2345:respawn:/bin/bash -login >/dev/tty2 2>&1 </dev/tty2
> 3:2345:respawn:/bin/bash -login >/dev/tty3 2>&1 </dev/tty3
> 4:2345:respawn:/bin/bash -login >/dev/tty4 2>&1 </dev/tty4
>
74,75c74,75
< #w5:5:wait:/bin/sleep 2
< #x5:5:wait:/etc/init.d/xsession start
---
> w5:5:wait:/bin/sleep 2
> x5:5:wait:/etc/init.d/xsession start
-
Good!
Hi tempo,
Changed "inittab", all works perfect now
. Thanks a lot for your help and your time!!
Marcel
Similar Threads
-
By Newbie07 in forum General Support
Replies: 3
Last Post: 12-03-2006, 01:12 PM
-
By jjbergdolt in forum MS Windows & New to Linux
Replies: 1
Last Post: 05-09-2005, 07:19 PM
-
By jesusfreind in forum General Support
Replies: 2
Last Post: 09-27-2003, 12:21 AM
-
By TheCyberDude in forum General Support
Replies: 0
Last Post: 06-19-2003, 10:43 PM
-
By eporue in forum Customising & Remastering
Replies: 2
Last Post: 01-24-2003, 04:24 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit
$19.99

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)
$12.00

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$5.99

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED
$11.99

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)
$7.57

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$20.85

Knoppix NSM 1.2
$8.00

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$21.42

Hamshack Live DVD-ROM
$7.00

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006
$34.01