[Buildroot] dropbear permission denied

Dirk Lohse d.lohse at meier-nt.de
Mon Aug 27 06:37:42 UTC 2012


I would prefer to set root-password "root" as default - so that dropbear works.

But would this bring up questions like "what is the default password"?

Dirk

-----Ursprüngliche Nachricht-----
Von: Thomas Petazzoni [mailto:thomas.petazzoni at free-electrons.com] 
Gesendet: Freitag, 24. August 2012 19:46
An: Belisko Marek
Cc: Dirk Lohse; buildroot at uclibc.org; buildroot at busybox.net
Betreff: Re: [Buildroot] dropbear permission denied

Le Fri, 24 Aug 2012 16:31:38 +0200,
Belisko Marek <marek.belisko at gmail.com> a écrit :

> > Correct. dropbear doesn't allow login into accounts that have an
> > empty password.
> Is there any way in e.g. post-processing to set some passwd (maybe
> empty) for root user to avoid such troubles? Anybody using it that
> way?

See http://www.elinux.org/images/2/2a/Using-buildroot-real-project.pdf
slide 25. You can use the post-build script mechanism to tune
the /etc/passwd file to set a root password.

I once thought of adding a Kconfig option for that, but it would mean
that the root password would be stored as clear text in the .config
file, which probably isn't that nice.

Should we make the default 'root' password be 'root' so that it is
non-empty and it works with Dropbear? Or simply add a FAQ entry
which explains this problem? Other ideas?

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com




More information about the buildroot mailing list