[Buildroot] Question on users and ssh access

Eugen.Hristev at microchip.com Eugen.Hristev at microchip.com
Mon Jun 28 08:55:59 UTC 2021


Hello everyone,

Maybe you can help me with a small matter related to user accounts in 
Buildroot ?

By default the /home directory does not exist, thus when using adduser 
to create a user, the creation of /home/foo fails ... and this causes 
login with ssh to the user impossible due to lack of home dir.

Any recommendation on how to solve this ? It is preferred to set a 
password for root for ssh access (as root has /root as home) ? or add a 
post-script to create the /home in the rootfs ?

Thanks !
Eugen


More information about the buildroot mailing list