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
  •  


Samsung DVI to DVI Cable 6 ft Digital Video Interface Audio Video NEW picture

Samsung DVI to DVI Cable 6 ft Digital Video Interface Audio Video NEW

$30.89



Samsung Galaxy Book4 Edge 15.6” FHD Snapdragon X 16GB 512GB Copilot+ picture

Samsung Galaxy Book4 Edge 15.6” FHD Snapdragon X 16GB 512GB Copilot+

$499.99



Samsung Galaxy View Tablet 18.4 SM-T670/677A Digitizer 100% Original Oem picture

Samsung Galaxy View Tablet 18.4 SM-T670/677A Digitizer 100% Original Oem

$152.99



Samsung T7 Shield 2TB USB-C Portable External SSD - Black (MU-PE2T0S) picture

Samsung T7 Shield 2TB USB-C Portable External SSD - Black (MU-PE2T0S)

$249.95



NEW Samsung USB Type-C 256GB Flash Drive USB 3.2 Gen 1 Genuine OEM -MUF-256DA/AM picture

NEW Samsung USB Type-C 256GB Flash Drive USB 3.2 Gen 1 Genuine OEM -MUF-256DA/AM

$55.99



Kids Case for Samsung Galaxy Tab A9+/A9 plus 11 Inch 2023 Case, with Strap, Shoc picture

Kids Case for Samsung Galaxy Tab A9+/A9 plus 11 Inch 2023 Case, with Strap, Shoc

$27.99



Samsung JC95-01514A Cover-Side Roller T2 Compatible picture

Samsung JC95-01514A Cover-Side Roller T2 Compatible

$39.00



Samsung JC93-01078A Transfer Roller T2 picture

Samsung JC93-01078A Transfer Roller T2

$89.00



Samsung LC34G55TWDNXZA 34

Samsung LC34G55TWDNXZA 34" Odyssey G55T WQHD 165Hz 1ms(MPRT) AMD FreeSync HDR

$217.00



Samsung Galaxy Tab Active 3/  64 gig/WIFI picture

Samsung Galaxy Tab Active 3/ 64 gig/WIFI

$85.00