Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 2 [3] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: setting root passwd for headless system< Next Oldest | Next Newest >
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 06 2007,05:12 QUOTE

Sorry, I often cannot keep up with all the posts.

If you wish to use bash to script change a password, you can use /usr/sbin/chpasswd.

Take a look at the example that I did in /etc/init.d/dsl-config.for the boot option "secure":

It is as simple as...

echo "root:$PASSWD|chpasswd"
Back to top
Profile PM WEB 
bib_ak Offline





Group: Members
Posts: 7
Joined: July 2007
Posted: July 08 2007,23:35 QUOTE

Perfect :) Though, I had a little more success with
Code Sample
echo "root:$PASSWD"|chpasswd

,just like in the example you pointed to ;)

Exactly how insecure is it to store your root password as plain text in a bash script? I know, bad, I know... But how on earth can anyone get into my machine to read the script in the first place?

Anyways, it works :)
Back to top
Profile PM 
11 replies since June 01 2006,18:37 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 2 [3] >/
reply to topic new topic new poll
Quick Reply: setting root passwd for headless system

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code