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...
Samsung Galaxy Tab A7 Lite SM-T220 32GB, Wi-Fi, 8.7" Silver *NOT WORKING SEE ⬇ï¸
$30.00
SAMSUNG Solid State Drive 990 PRO Series - 1TB, Sealed
$99.99
Samsung 860 EVO 1TB,Internal, 2.5 inch (MZ-76E1T0B/AM) Solid State Drive
$49.00
LOT OF 10 Mixed 256GB M.2 NVMe SSD
$120.00
Samsung 870 EVO EQV 2.5" SATA III Internal SSD - Choose from 1TB 2TB Capacities
$54.00
Samsung SE-506CB/RSBD Slim Portable USB Blu-ray Reader/Writer
$35.00
Samsung LU28R550UQNXZA 28 inch UHD Monitor 206377 209290
$150.00
Samsung USB 3.2 Gen 1 Type-C 256GB Flash Drive MUF-256DA/AM
$19.95
Samsung 1.6TB SSD SAS 2.5" 12G PM1635 MZILS1T6HCHP-000C3 NetApp 520 Block
$69.95
OEM Samsung Galaxy Tab S9 Ultra 14.6" Book Cover Keyboard, Black, EF-DX915UBEGUJ
$199.99