* [Buildroot] Question on users and ssh access
@ 2021-06-28 8:55 Eugen.Hristev at microchip.com
2021-06-28 9:06 ` Maxim Kochetkov
2021-07-03 13:38 ` Arnout Vandecappelle
0 siblings, 2 replies; 4+ messages in thread
From: Eugen.Hristev at microchip.com @ 2021-06-28 8:55 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Question on users and ssh access
2021-06-28 8:55 [Buildroot] Question on users and ssh access Eugen.Hristev at microchip.com
@ 2021-06-28 9:06 ` Maxim Kochetkov
2021-06-28 9:11 ` Eugen.Hristev at microchip.com
2021-07-03 13:38 ` Arnout Vandecappelle
1 sibling, 1 reply; 4+ messages in thread
From: Maxim Kochetkov @ 2021-06-28 9:06 UTC (permalink / raw)
To: buildroot
28.06.2021 11: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 ?
>
> Thanks !
> Eugen
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
Try this:
https://buildroot.org/downloads/manual/manual.html#customize-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Question on users and ssh access
2021-06-28 9:06 ` Maxim Kochetkov
@ 2021-06-28 9:11 ` Eugen.Hristev at microchip.com
0 siblings, 0 replies; 4+ messages in thread
From: Eugen.Hristev at microchip.com @ 2021-06-28 9:11 UTC (permalink / raw)
To: buildroot
On 6/28/21 12:06 PM, Maxim Kochetkov via buildroot wrote:
> 28.06.2021 11: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 ?
>>
>> Thanks !
>> Eugen
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
>>
>
> Try this:
> https://buildroot.org/downloads/manual/manual.html#customize-users
Thanks, but I do not wish to have new default users for the buildroot
image (at compile time).
I wish the user who flashes the buildroot image can create new users on
demand, without the problem that adduser fails in creating their home
directory
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Question on users and ssh access
2021-06-28 8:55 [Buildroot] Question on users and ssh access Eugen.Hristev at microchip.com
2021-06-28 9:06 ` Maxim Kochetkov
@ 2021-07-03 13:38 ` Arnout Vandecappelle
1 sibling, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2021-07-03 13:38 UTC (permalink / raw)
To: buildroot
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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-03 13:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 8:55 [Buildroot] Question on users and ssh access Eugen.Hristev at microchip.com
2021-06-28 9:06 ` Maxim Kochetkov
2021-06-28 9:11 ` Eugen.Hristev at microchip.com
2021-07-03 13:38 ` Arnout Vandecappelle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.