Package: libpam-script
Followup-For: Bug #927079

Hi,

you mentioned that libpam-script filters environment variables, but I
think this is not actually the case. Looking at the code, it only seems
to *add* a number of variables, not remove any.

For example I added the following line to my /etc/pam.d/sudo (just
before the common-auth line):

  auth optional pam_script.so dir=/etc/pam.d/lock-scripts

And then created /etc/pam.d/lock-scripts/pam_script_auth:

  #!/bin/sh
  env > /tmp/env

After running sudo, I get my entire environment in /tmp/env.

I suspect there might be other pam modules that might be clearing the
env, or maybe the application that calls the pam module?

Gr.

Matthijs

Reply via email to