I'm using buildroot for an embedded product. I've added my own password-protected user via the BR2_ROOTFS_USERS_TABLES
option, and that's working fine.
Problem: buildroot continues to add user
and admin
users to the system, and they have no passwords. These are not part of the skeleton file system, but seem to be explicitly added during the build process, although darned if I can figure out where. Plus, even when I disable BR2_TARGET_ENABLE_ROOT_LOGIN
, I'm still allowed to login as root.
How can I get rid of the default user
and admin
users? Alternatively, how can I set their passwords to something long and unguessable?
Edit: I just discovered that removing
BR2_TARGET_ENABLE_ROOT_LOGIN=y
from my BR2_TARGET_ENABLE_ROOT_LOGIN
file isn't enough; the file has to include the line
# BR2_TARGET_ENABLE_ROOT_LOGIN is not set
... or the built .config
file will still have BR2_TARGET_ENABLE_ROOT_LOGIN=y
in it. But, even after I corrected this and did a clean rebuild, my resulting system still has no-password root
logins, and both user
and admin
accounts with empty passwords.