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
 

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

reply to topic new topic new poll
Topic: Permanently change password on lived, with backup + bootlocal.sh< Next Oldest | Next Newest >
friedgold Offline





Group: Members
Posts: 122
Joined: Mar. 2005
Posted: May 03 2005,15:40 QUOTE

How do I change the passwords seems to be a common topic on these boards. The standard answer is to use sudo su to become root and then passwd to change passwords. However if you are booting from a livecd/frugal install when you reboot the passwords you set will be lost. Here's my solution for this:

Add the following into /opt/bootlocal.sh

chpasswd <<EOF
root:root_pass_here
dsl:dsl_pass_here
EOF

Then create a backup file (if you haven't already) from the myDSL panel to save your settings.

When you next reboot the lines you've added to bootlocal.sh will set the password for root/dsl to the ones you've specified. This is especially useful when you want to start various services on boot such as ssh,ftp,etc which require a password to be set before you can login.
Back to top
Profile PM 
meo Offline





Group: Members
Posts: 552
Joined: April 2004
Posted: May 04 2005,16:46 QUOTE

Hi friedgold!

Thanks, that might be useful sometime.

Keep on having fun,
meo


--------------
"Live and let live"   Treat others the way you want to be treated because that's what you should expect from them.

"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire
Back to top
Profile PM 
1 replies since May 03 2005,15:40 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Permanently change password on lived

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