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.
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,
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.
Answer resided in article 'Headless knoppix' (docs division)![]()
the line :
does the trick.Code:echo "knoppix:$PASSWORD" | chpasswd
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 :
save it as setmyknoppix.shCode:echo "knoppix:testpassword" | chpasswd
- Now type in knoppix console :
Now the password for knoppix is set to testpasswordCode:sudo sh setmyknoppix.sh
This can also be applied for the root.
- launch KWrite (or other editor)
type here :
save it as setmyroot.shCode:echo "root:rootpassword" | chpasswd
- Now type in knoppix console :
et voilą ....Code:sudo sh setmyroot.sh
greetzzzz...
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 :
does the trick.Code:echo "knoppix:$PASSWORD" | chpasswd
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 :
save it as setmyknoppix.shCode:echo "knoppix:testpassword" | chpasswd
- Now type in knoppix console :
Now the password for knoppix is set to testpasswordCode:sudo sh setmyknoppix.sh
This can also be applied for the root .
- launch KWrite (or other editor)
type here :
save it as setmyroot.shCode:echo "root:rootpassword" | chpasswd
- Now type in knoppix console :
Now the password for root is set to rootpasswordCode:sudo sh setmyroot.sh
et voilą ....
greetzzzz...

Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU
$7.95
Lenovo ThinkServer TS460 Part Number: 70TS-S01U00
$279.00
NEW HP Z4 G4 Workstation Xeon W-2123 16GB ECC 256GB NVMe NVIDIA T400 750W Win11
$450.00
Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS
$127.54
Intel Xeon 6 6732P 3.8GHz 32 Core 144MB 24GT/s 350W6th Gen Processor SRVP2
$13499.99
Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS
$84.49
HP Z840 44 Core Workstation 2x Xeon E5-2699 v4 - No RAM/ GPU/ HDD/ OS
$594.97
Intel Xeon 6 6737P 2.9GHz 32 Core 144MB 24GT/s 270W 6th Gen Processor SRVNZ
$8032.49
Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM
$699.00
Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor
$50.00