Results 1 to 4 of 4

Thread: How to add root and knoppix password automatically ?

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252

    How to add root and knoppix password automatically ?

    Any idea how to add a root and knoppix password automatically ?
    (without user intervention)

    It's to create semi-customized knoppix.

    It should launch FTP server and SSH server automatically at boot.
    But without setting the password for knoppix this doesn't work.

    Anyone an idea ?

    Greetzzzzz,

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    I would use useradd to create a new user with password automatically in knoppix.sh. For detailed information on useradd, please see the man page.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252
    Answer resided in article 'Headless knoppix' (docs division)

    the line :

    Code:
    echo "knoppix:$PASSWORD" | chpasswd
    does the trick.
    Nevertheless you must be in root.
    Since you can't sudo this with knoppix user ,you'll have to work with inbetween script.
    The reason I use sh xxxx.sh is that I can use then from a remote drive. (I don't have to chmod it - since I can't either )

    How I pulled it off :

    - launch KWrite (or other editor)
    type here :

    Code:
    echo "knoppix:testpassword" | chpasswd
    save it as setmyknoppix.sh

    - Now type in knoppix console :

    Code:
    sudo sh setmyknoppix.sh
    Now the password for knoppix is set to testpassword

    This can also be applied for the root .

    - launch KWrite (or other editor)
    type here :

    Code:
    echo "root:rootpassword" | chpasswd
    save it as setmyroot.sh

    - Now type in knoppix console :

    Code:
    sudo sh setmyroot.sh
    et voilą ....

    greetzzzz...

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Belgium
    Posts
    252
    Sorry chaps, seems you can't get bold into code .
    So here is the good one

    Answer resided in article 'Headless knoppix' (docs division)

    the line :
    Code:
    echo "knoppix:$PASSWORD" | chpasswd
    does the trick.
    Nevertheless you must be in root.
    Since you can't sudo this with knoppix user ,you'll have to work with inbetween script.
    The reason I use sh xxxx.sh is that I can use then from a remote drive. (I don't have to chmod it - since I can't either )

    How I pulled it off :

    - launch KWrite (or other editor)
    type here :
    Code:
    echo "knoppix:testpassword" | chpasswd
    save it as setmyknoppix.sh
    - Now type in knoppix console :
    Code:
    sudo sh setmyknoppix.sh
    Now the password for knoppix is set to testpassword

    This can also be applied for the root .

    - launch KWrite (or other editor)
    type here :
    Code:
    echo "root:rootpassword" | chpasswd
    save it as setmyroot.sh

    - Now type in knoppix console :

    Code:
    sudo sh setmyroot.sh
    Now the password for root is set to rootpassword

    et voilą ....

    greetzzzz...

Similar Threads

  1. Is there a root password for Knoppix
    By papwilly in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 01-20-2005, 02:04 PM
  2. How to set the root password on Knoppix 3.3
    By MrWizard in forum General Support
    Replies: 3
    Last Post: 12-01-2003, 10:14 PM
  3. Root password for Knoppix Live CD
    By Joel-Tang in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 09-28-2003, 02:42 AM
  4. Knoppix cd root password
    By swamishriji in forum General Support
    Replies: 2
    Last Post: 04-08-2003, 01:55 AM
  5. Knoppix cd root password
    By swamishriji in forum General Support
    Replies: 1
    Last Post: 04-07-2003, 04:02 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
  •  


Vintage Cherry W. Germany G80-0486H/05 Mechanical 25-Pin D-Sub Keyboard M8 picture

Vintage Cherry W. Germany G80-0486H/05 Mechanical 25-Pin D-Sub Keyboard M8

$170.99



Vintage Computer - PC Innovation Intel 486DX2 - Dos Ver 6.2 Windows 3.1 picture

Vintage Computer - PC Innovation Intel 486DX2 - Dos Ver 6.2 Windows 3.1

$250.00



Vintage Jetway J-620BF Socket 370 Celeron AT Motherboard SiS 620 Brand New picture

Vintage Jetway J-620BF Socket 370 Celeron AT Motherboard SiS 620 Brand New

$75.00



Vintage HP Hewlett Packard 2112A 21MX 1000 M-Series 16-Bit Minicomputer picture

Vintage HP Hewlett Packard 2112A 21MX 1000 M-Series 16-Bit Minicomputer

$419.99



Vintage Timbuk2 Crossbody Messenger Bag Forest Green/ Black  Y2k USA Made picture

Vintage Timbuk2 Crossbody Messenger Bag Forest Green/ Black Y2k USA Made

$85.00



Vintage Digital Research Concurrent DOS 386 multi-user operating System software picture

Vintage Digital Research Concurrent DOS 386 multi-user operating System software

$100.00



Vintage cross Apple computer branded pen rainbow logo In original box picture

Vintage cross Apple computer branded pen rainbow logo In original box

$100.00



Vintage NRI Model 832 Microcomputer Case - See Photos picture

Vintage NRI Model 832 Microcomputer Case - See Photos

$295.00



Vintage Microsoft Office 4.2 for Windows Original Floppy Disks & Manuals 1994 picture

Vintage Microsoft Office 4.2 for Windows Original Floppy Disks & Manuals 1994

$119.99



ASUS A7V333 Vintage Motherboard | Untested | For Parts picture

ASUS A7V333 Vintage Motherboard | Untested | For Parts

$44.89