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...
HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA
$234.98
HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram 2x 256GB SSD Quadro 2000 Linux GA
$269.99
HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb 512gb SSD 4TB Win10
$239.99
HP Workstation Z420 Xeon V2 3.7GHz, 64Gb PC Desktop - F1L05UT#ABA
$145.00
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor
$3.97
Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU
$35.19
INTEL XEON E5-2699V4 2.2 GHz 22-CORE SR2JS CM8066002022506
$138.50
Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5
$49.00
HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X
$309.99
HP Z230 Workstation Towers Xeon E3-1231 V3 3.20ghz 8GB Ram NO HDD
$35.96