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: (5) </ 1 2 3 4 [5] >/

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

reply to topic new topic new poll
Topic: Root password retention, DSL wont retain root PW after reboot< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 08 2006,23:42 QUOTE

I can't say what would be best for you.  Personally I think frugal with persistent home is nice for DSL, but i also have other distros in which i don't think i'd like this setup.

The several kernel lines above are each used in only one DSL configuration.  It looks like you have 4 choices when you boot (5 are commented out, including windows), and when you make a choice only one kernel line is used.  This can be very useful for booting DSL in various configurations, all using the same DSL installation.

The default is listed as entry 0, which is the first entry. You could either modify that first entry (title DSL) or make a copy of it and edit the copy.  For example, if you copy this:
Code Sample
title DSL
kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm nodma noscsi frugal
initrd /boot/minirt24.gz

and then paste it and edit the copy as this:
Code Sample
title DSL test
kernel /boot/linux24 root=/dev/hda1 quiet vga=normal noacpi noapm nodma noscsi frugal dsl home=hda1
initrd /boot/minirt24.gz

Then it should provide you with a persistent home in /mnt/hda1/home when you select "DSL test" from the grub menu.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Josiah Offline





Group: Members
Posts: 25
Joined: July 2006
Posted: Aug. 09 2006,02:09 QUOTE

mikshaw it worked!  Home and the root password persist just fine now!  Thank you!

A new question though:

When I changed from LILO to grub, it threw out the LILO option to have the ssh server start at boot.  How do I set ssh to start at boot up?

Since I will be running DSL as a server without any mouse, keyboard, or monitor, it is essential that I have ssh start with the system.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 09 2006,03:01 QUOTE

put "ssh" on that same line.  I'm not sure, but it might need to go after "dsl".

If that doesn't work, it could be that sshd is being started before the password is restored, but i'm not sure about that either.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Del Offline





Group: Members
Posts: 109
Joined: Dec. 2003
Posted: Aug. 10 2006,01:02 QUOTE

Indeed, the 'ssh' boot param fires off sshd before /etc/passwd is restored. On my other machine (running DSL-N, but still similar) I have /etc/passwd, /etc/shadow and /etc/ssh (I think it's called that, the sshd config dir) in .filetool.lst. The last one is so the ID key thing is saved between boots and not regenerated every time. Then in bootlocal.sh I have sshd starting, that way it fires up after /etc/* is restored.

--------------
Del
--da da da--
Back to top
Profile PM 
23 replies since Aug. 04 2006,22:40 < Next Oldest | Next Newest >

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

Pages: (5) </ 1 2 3 4 [5] >/
reply to topic new topic new poll
Quick Reply: Root password retention

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