Sudo broken with glibc 2.39 (on Raspberry Pi 0W)
Since commit package/glibc: bump to 2.39 (introduced in Buildroot 2024.05) I can no longer use sudo command on Raspberry Pi 0w. It does not accept my password:
$ sudo ls
Password:
Sorry, try again.
All I have done are few modifications to upstream raspberrypi0w_defconfig:
- Enabled sudo
BR2_PACKAGE_SUDO=y - Added users table
BR2_ROOTFS_USERS_TABLES="users-table"
$ cat users-table
user -1 users -1 =user /home/user /bin/sh
- Added sudoers
BR2_ROOTFS_OVERLAY="rootfs-overlay"
$ cat rootfs-overlay/etc/sudoers
user ALL=(ALL) ALL
And since my Raspberry has broken serial line, I added small init script to run getty over USB (configfs usb gadget) instead of uart and set BR2_TARGET_GENERIC_GETTY_PORT="ttyGS0"
Happens also on current master. Reverting mentioned commit above helps.
Edited by Jan Havran