Am Thu, Mar 21, 2024 at 06:01:25PM -0300 schrieb Brian Mayer: > Hello. > > I compiled ubase using GCC and musl, but using passwd gives me an error > message: > > $ passwd root > passwd: getpass: No such device or address > > Any ideas? > > Thanks >
Looking at the getpass() source, it looks like open("/dev/tty") fails. You can verify this by running passwd in strace (although you may have to run both inside sudo, since debuggers disable setuid). Ciao, Markus