Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: bkm on April 05, 2017, 09:08:33 AM

Title: How to start dropbear from the bootlocal.sh
Post by: bkm on April 05, 2017, 09:08:33 AM
Now that I have a nicely working TCL system I want to set it up headless and use the dropbear client.

So, from the tc user prompt I used the command
Code: [Select]
/usr/local/etc/init.d/dropbear start
This started the dropbear client, but during the start process I noticed that it failed to generate the needed security keys and failed with permission denied error. The client still started but I was not very useful so I stopped it and tried again with:
Code: [Select]
sudo /usr/local/etc/init.d/dropbear start
With "sudo" the client started correctly and generated the security keys.

My question is, when I add this line to the bootlocal.sh do I need to include the sudo part of the command or does bootlocal.sh already run as root?


Thanks,

BKM
Title: Re: How to start dropbear from the bootlocal.sh
Post by: gerald_clark on April 05, 2017, 09:23:07 AM
Bootlocal.sh already runs as root.
Title: Re: How to start dropbear from the bootlocal.sh
Post by: bkm on April 10, 2017, 10:56:20 AM
Thank you!!    **SOLVED**

BKM