Quantcast
Viewing all articles
Browse latest Browse all 330

sudo fails to ask for password if libpam-tacplus is installed

With an updated Ubuntu 23.10 installation (as of 2024-01-25), running anything with sudo fails to ask for a password. It just hangs forever. Running strace, I noticed that it was blocking on a read() from the fd pointing to the tty, so on a hunch I just entered the password without the prompt, and then the command runs as expected.

Has anyone seen this behaviour?

sudo is at version 1.9.14p2-1ubuntu1, and permissions on /dev/tty look normal:

$ ls -l /dev/ttycrw-rw-rw- 1 root tty 5, 0 2024-01-25 15:17 /dev/tty$ groupspeter adm cdrom sudo dip plugdev lxd

(I've rebooted a couple of times, just to make sure the system wasn't in a weird state).

If I press Enter once I do get a password prompt:

$ sudo ls<press Enter>[sudo] password for peter: ^Csudo: 1 incorrect password attempt

UPDATE: I had installed the libpam-tacplus package (there is a very old version in Ubuntu, which I am working replacing with a modern version as the product I am developing at $DAYJOB requires it). Removing this package restores the prompt.


Viewing all articles
Browse latest Browse all 330

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>