Verified on oracular:

root@pam-oracular:~# useradd -s /bin/sh -p $(openssl passwd -6 foo) foo
root@pam-oracular:~# mv /etc/pam.d/* /usr/lib/pam.d
root@pam-oracular:~# login
pam-oracular login: foo
Password:
run-parts: /etc/update-motd.d/98-fsck-at-reboot exited with return code 2
[snip]
$
root@pam-oracular:~# mv /usr/lib/pam.d/common-password /etc/pam.d
root@pam-oracular:~# mv /usr/lib/pam.d/login /etc/pam.d
root@pam-oracular:~# MOTD_FILE="" login foo
Password:
Welcome to Ubuntu 24.10 (GNU/Linux 6.14.0-15-generic x86_64)
[snip]
$
root@pam-oracular:~# cp /usr/lib/pam.d/common-account /etc/pam.d
root@pam-oracular:~# echo foobar >> /etc/pam.d/common-account
root@pam-oracular:~# login
pam-oracular login: foo
Password:

Login incorrect
pam-oracular login:

Login incorrect
pam-oracular login: ^C
root@pam-oracular:~# journalctl -xe | tail
Jun 13 15:14:09 pam-oracular login[1624]: PAM (login) illegal module type: 
foobar
Jun 13 15:14:09 pam-oracular login[1624]: PAM (login) no control flag supplied
Jun 13 15:14:09 pam-oracular login[1624]: PAM (login) no module name supplied
Jun 13 15:14:09 pam-oracular login[1624]: PAM (other) illegal module type: 
foobar
Jun 13 15:14:09 pam-oracular login[1624]: PAM (other) no control flag supplied
Jun 13 15:14:09 pam-oracular login[1624]: PAM (other) no module name supplied
Jun 13 15:14:17 pam-oracular login[1624]: FAILED LOGIN (1) on '/dev/pts/1' FOR 
'foo', Permission denied
Jun 13 15:14:20 pam-oracular login[1624]: pam_nologin(login:auth): unexpected 
response from failed conversation function
Jun 13 15:14:20 pam-oracular login[1624]: pam_nologin(login:auth): cannot 
determine user name
Jun 13 15:14:22 pam-oracular login[1624]: FAILED LOGIN (2) on '/dev/pts/1' FOR 
'UNKNOWN', User not known to the underlying authentication module
root@pam-oracular:~# dpkg -l libpam0g
ii  libpam0g:amd64 1.5.3-7ubuntu2.1 amd64        Pluggable Authentication 
Modules library

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2087827

Title:
  Pam includes does not look in /usr/lib/pam.d

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/2087827/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to