[Buildroot] Question on users and ssh access
Arnout Vandecappelle
arnout at mind.be
Sat Jul 3 13:38:45 UTC 2021
On 28/06/2021 10:55, Eugen.Hristev--- via buildroot wrote:
> 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 ?
You can use BR2_ROOTFS_DEVICE_TABLE ("Path to permission tables") to point to a
file that instructs buildroot to create the /home directory.
Alternatively, you can create an overlay (BR2_ROOTFS_OVERLAY) that contains /home.
Finally, you can specify the home directory location in adduser's arguments,
for example pointing to /tmp/<user>.
Regards,
Arnout
>
> Thanks !
> Eugen
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
More information about the buildroot
mailing list