-
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

MTC8C1084S1SC56BD1 Micron 16GB DDR5 1Rx8 PC5-5600B 5600Mhz SO-DIMM Memory
$149.99

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit
$99.99

16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY
$10.00

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$21.68

MINT Micron Cisco 32GB PC4-2400T DDR4 2Rx4 RDIMM RAM MTA36ASF4G72PZ-2G3 LOT
$159.99

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC
$29.99

Corsair Vengeance LPX 64GB (2x32GB) DDR4 3200MHz C16 RAM CMK64GX4M2E3200C16
$399.99

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix
$66.00

Micron 32GB 1x32GB DDR5 5600 CL46 ECC Unbuffered SO-DIMM MTC20C2085S1TC56BD1
$399.00

NEW IN BOX - Corsair Vengeance RGB 32gb (2x16gb) DDR6200 CL36 CMH32GX5M2B6200C3
$550.00