<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; "><span>Thank You once more.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span>Thing with keys works like a charm.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span>I tar all the dirs you mentioned to config.tbz on GRMLCFG labeled fs (preserving absolute path) and it gets restored on boot.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; "> <br></div><div style="font-family: 'times new roman', 'new york', times, serif; ">As for ssh:mysecret that was typo and
ssh=mysecret doesn't do any good. Maybe it's a bug or I make mistake somewhere else along the way.</div><div style="font-family: 'times new roman', 'new york', times, serif; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; ">Also, to avoid these kind of problems it seems to me that configuration is somewhat misleading.</div><div style="font-family: 'times new roman', 'new york', times, serif; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; ">I'll quote from grml-autoconfig web page:</div><div style="font-family: 'times new roman', 'new york', times, serif; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; "><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', Times, serif; font-size: 16px; "><i>Without any additional boot parameters, the GCA at DCSDIR/config.tbz is automatically unpacked and DCSDIR/scrips/grml.sh is automatically
executed on system startup</i></span><br></div><div><font class="Apple-style-span" face="Georgia, 'Times New Roman', Times, serif"><br></font></div><div><font class="Apple-style-span">DCSDIR/scrips/grml.sh shoud be, according to my experience DCSDIR/grml.sh</font></div><div><font class="Apple-style-span" face="Georgia, 'Times New Roman', Times, serif"><br></font></div><div><font class="Apple-style-span" face="Georgia, 'Times New Roman', Times, serif"><br></font></div><div><font class="Apple-style-span" face="Georgia, 'Times New Roman', Times, serif"><br></font></div><div><font class="Apple-style-span" face="Georgia, 'Times New Roman', Times, serif"><br></font></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Lupe Christoph
<lupe@lupe-christoph.de><br><b><span style="font-weight: bold;">To:</span></b> Bojan Sukalo <shukalo83@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> "grml@mur.at" <grml@mur.at><br><b><span style="font-weight: bold;">Sent:</span></b> Monday, September 5, 2011 4:17 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Grml] Problem with grml autoconfig<br></font><br>On Monday, 2011-09-05 at 06:50:05 -0700, Bojan Sukalo wrote:<br>> Thank You.<br>> That helped a lot.<br><br>You're welcome.<br><br>> I know we supposed to finish this thread and start another but I need hint a bout ssh server.<br><br>> Starting an sshd from script does the job but I have problem because root password is empty so I not access the server.<br><br>I would propose that you use a key to access root on this server rather<br>than a password. While you could overwrite /etc/passwd from grml.sh or<br>config.tbz, I would not
recommend to do that.<br><br>Here is what I do:<br><br>1) Create /root/.ssh/authorized_keys<br>2) Save these files and directories to /mnt/GRMLCFG/config.tbz:<br>/etc/ssh/ssh_host_dsa_key<br>/etc/ssh/ssh_host_dsa_key.pub<br>/etc/ssh/ssh_host_ecdsa_key<br>/etc/ssh/ssh_host_ecdsa_key.pub<br>/etc/ssh/ssh_host_key<br>/etc/ssh/ssh_host_key.pub<br>/etc/ssh/ssh_host_rsa_key<br>/etc/ssh/ssh_host_rsa_key.pub<br>/root/.ssh<br>3) Log in with the key<br><br>> Is there a workaroud. bootoption ssh:mysecret does not seem to start the sshd or to change password for grml user.<br><br>That should be ssh=password not ssh:password.<br><br>> Even if it does, will I abe able to change from grml to root without knowing the root pass.<br><br>May I suggest "sudo su -"? The grml user has full sudoers rights,<br>without a password. But with the default /etc/shadow, "su -" does not<br>request a password.<br><br>If you want to use /mnt/GRMLCFG/config.tbz, here is what I use
to manage<br>it. I write the file and directory names to /mnt/GRMLCFG/config.list and<br>run this little script (/mnt/GRMLCFG/save-config) to refresh<br>/mnt/GRMLCFG/config.tbz:<br><br>#!/bin/sh<br><br>tar cvfjpP /mnt/GRMLCFG/config.tbz -T /mnt/GRMLCFG/config.list<br><br>HTH,<br>Lupe Christoph<br>-- <br>| It is a well-known fact in any organisation that, if you want a job |<br>| done, you should give it to someone who is already very busy. |<br>| Terry Pratchett, "Unseen Academicals" |<br><br><br></div></div></div></body></html>