-
Senior Member
registered user
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,
-
Senior Member
registered user
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.
-
Senior Member
registered user
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...
-
Senior Member
registered user
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
-
By papwilly in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 01-20-2005, 02:04 PM
-
By MrWizard in forum General Support
Replies: 3
Last Post: 12-01-2003, 10:14 PM
-
By Joel-Tang in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 09-28-2003, 02:42 AM
-
By swamishriji in forum General Support
Replies: 2
Last Post: 04-08-2003, 01:55 AM
-
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
-
Forum Rules

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC
$49.99

128GB USB 14-in-1 MacOS bootable Installer repair recovery tech support service
$39.99

Windows 11 Pro Install/Recovery/Repair USB Flash Drive
$35.00

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB
$8.47

Lot 5/10pcs USB Flash Drive Memory Stick 1MB-64GB Pendrive Thumb Drive 8GB 32GB
$236.00

LOT 10x SanDisk 32GB ULTRA USB 3.0 flash drive SDCZ48-032G 32 GB read 100 MB/s
$39.80

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet
$147.00

Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick
$305.01