[Buildroot] help - custom user not working

yann.morin at orange.com yann.morin at orange.com
Fri Dec 8 11:38:14 UTC 2023


Stefano, All,

On 2023-12-08 11:45 +0100, Stefano Cottafavi spake thusly:
> I'm trying to add a custom user to the minimal "raspberrypi4_defconfig" build.
> I'm using Buildroot 2023.11, following the manual I've created a "users.txt" file (in the buildroot root folder) with just one line:
> pi -1 pi -1 =raspberry /home/pi /bin/sh -
> The config file contains:
> BR2_ROOTFS_USERS_TABLES="users.txt"
> The build is successful and looking and the "full_users_table.txt" (output of the build) I can see the user definition above.
> However, when I try to log on as "pi" I get "Login incorrect" error.
> If I login as root and check the /etc/psswd, I DO NOT see the user pi
> Can you help me understand what am I missing?

Be sure that your users.txt is a proper unix-style text file, i.e.
lines are \n terminated, even the last one (proper editors, like vi,
will include the proper line termintaion).

Regards,
Yann E. MORIN.

-- 
                                        ____________
.-----------------.--------------------:       _    :------------------.
|  Yann E. MORIN  | Real-Time Embedded |    __/ )   | /"\ ASCII RIBBON |
|                 | Software  Designer |  _/ - /'   | \ / CAMPAIGN     |
| +33 638.411.245 '--------------------: (_    `--, |  X  AGAINST      |
| yann.morin (at) orange.com           |_="    ,--' | / \ HTML MAIL    |
'--------------------------------------:______/_____:------------------'

____________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.


More information about the buildroot mailing list