0

is there a way to change location of /etc/pam.d directory, or is it hardcoded into PAM? can't it be changed with some environment variable for specific client programs?

for example:

PAM_CONFIG_ROOT=/tmp/pam_test_configs pam_client_app

or it can't be done for some reason I don't see now?

mighq
  • 355
  • 1
  • 3
  • 11

2 Answers2

0

The pam(8) manual page says explicitly that it considers /etc/pam.conf but only if /etc/pam.d/ doesn't exist. No mention whatsoever of alternative places. The definite guide is here.

Either arrange for your modules to be called only by you, or use a virtual machine set up for testing.

vonbrand
  • 1,149
  • 2
  • 8
  • 16
0

I looked into the Linux PAM sources. /etc/pam.conf, /etc/pam.d are hardcoded there. :(

mighq
  • 355
  • 1
  • 3
  • 11