Results 1 to 5 of 5

Thread: Ask for password on boot

  1. #1
    Junior Member
    Join Date
    Sep 2004
    Posts
    3

    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

  2. #2
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    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

  3. #3
    Junior Member
    Join Date
    Sep 2004
    Posts
    3

    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

  4. #4
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    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

  5. #5
    Junior Member
    Join Date
    Sep 2004
    Posts
    3

    Good!

    Hi tempo,

    Changed "inittab", all works perfect now . Thanks a lot for your help and your time!!

    Marcel

Similar Threads

  1. Password help...
    By Newbie07 in forum General Support
    Replies: 3
    Last Post: 12-03-2006, 01:12 PM
  2. Password
    By jjbergdolt in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 05-09-2005, 07:19 PM
  3. password
    By jesusfreind in forum General Support
    Replies: 2
    Last Post: 09-27-2003, 12:21 AM
  4. How to Change Password to No Password?
    By TheCyberDude in forum General Support
    Replies: 0
    Last Post: 06-19-2003, 10:43 PM
  5. How to add password protection ?
    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
  •  


Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell PowerEdge R730 Server 2x Xeon E5-2630 V4 64GB DDR4 2TB HDD Rackmount picture

Dell PowerEdge R730 Server 2x Xeon E5-2630 V4 64GB DDR4 2TB HDD Rackmount

$489.99



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD

$149.99



Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO picture

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO

$248.00



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W

$524.99



Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays picture

Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays

$599.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores | 32gb | HBA330 | 2x 1... picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores | 32gb | HBA330 | 2x 1...

$324.99



Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD picture

Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD

$119.99