Bug 13561 - Create a new user defining users-table.txt not working fine
Summary: Create a new user defining users-table.txt not working fine
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2020.02.1
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-24 08:07 UTC by Ivan Castell Rovira
Modified: 2021-02-24 10:50 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Castell Rovira 2021-02-24 08:07:16 UTC
I am trying to create a new admin user in my rootfs, following suggested procedure, with this steps:

$ make menuconfig 
    > System Configuration 
        > (board/company/users-table.txt) Path to the users tables 
    > Save and exit

Then created the file:

$ cat board/company/users-table.txt
admin -1 admin -1 =supersecret /home/admin /bin/sh - Admin user

And finally:

$ make all

The process ends fine, without errors.

After that, the targetfs build doesn't includes admin user nor in /etc/shadow nor in /etc/passwd. 

However, the same procedure is working as expected when using a buildroot 2018.02.7. Please some help with this! Thx!
Comment 1 Ivan Castell Rovira 2021-02-24 10:50:20 UTC
It works as expected, just get confused as the output target directory doesn't contain this user, it seems to be created in a last step. This can be closed. Thanks!