[Buildroot] New user creation

Peter Seiderer ps.report at gmx.net
Mon Jul 6 19:03:05 UTC 2020


Hello Srijan Nandi,

On Fri, 3 Jul 2020 09:59:08 +0530, Srijan Nandi - Gmail <srijan.nandi at gmail.com> wrote:

> I am facing issues creating a new users. I already have the following set:
>
> BR2_ROOTFS_USERS_TABLES="x86_64/users"
>
> /opt/buildroot-2020.05$ cat x86_64/users
> # <username> <uid> <group> <gid> <password> <home> <shell> <groups> <comment>
> test       8000  wheel    -1    =           -                /bin/bash    -    Test user
>
> But when I check under passwd, I am not able to see the new user
>
> /opt/buildroot-2020.05$ cat output/target/etc/passwd
> root:x:0:0:root:/root:/bin/bash
> daemon:x:1:1:daemon:/usr/sbin:/bin/false
> bin:x:2:2:bin:/bin:/bin/false
> sys:x:3:3:sys:/dev:/bin/false
> sync:x:4:100:sync:/bin:/bin/sync
> mail:x:8:8:mail:/var/spool/mail:/bin/false
> www-data:x:33:33:www-data:/var/www:/bin/false
> operator:x:37:37:Operator:/var:/bin/false
> nobody:x:65534:65534:nobody:/home:/bin/false
>
> Is there something I am missing

The evaluation of the users table is a late buildstep, you do not find
the users in the target directory but in all filesystem images (e.g.
the 'tar root filesyste' - BR2_TARGET_ROOTFS_TAR=y), if you enable
this one and untar it you will find your configured users...

Regards,
Peter

>
>
> -=Srijan Nandi
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot



More information about the buildroot mailing list