pam_script is a PAM that executes a script at the start and end of a session. Any PAM-aware application can use the module to perform arbitrary operations. It was originally written for cleaning up when a user logs out.
| Tags | Security |
|---|---|
| Licenses | GPL |
| Implementation | C |
Recent releases


Release Notes: A bug in the dropping of privileges was fixed. The option parsing code was rewritten and an initgroups option was added.


Release Notes: Improved Makefile and Debian packaging scripts. Options to set the home directory and PAM_USER token in the environment.


Release Notes: This release fixes a bug that prevented building with PAM 0.99. There are minor documentation updates.


Release Notes: pam-script can now expose PAM_RHOST to the script.


Release Notes: Small changes were made to comply with Debian policy.
Recent comments
13 Feb 2003 23:12
Re: I hacked mine to run both login and logout scripts...
> I hacked my pam_script module to have
> both a login and a logout script,
I've been thinking of doing this for a while, but it is very simple to implement and so far I have no need for that, as /etc/X11/Xsession is usually sufficient. But it might be useful for other uses, such as on pam aware ftp servers.
Anyway, if you want to send me a patch I'll incorporate it into the main source in some way, or at least include the patch in the tarball.
13 Feb 2003 08:22
I hacked mine to run both login and logout scripts...
I hacked my pam_script module to have both a login and a logout script, /etc/security/pam_script/log... respectively. Works wonders for doing screwy things when a user logs in! For example, I use a PHP script that hooks up to my LDAP server to find out where the user's home directory is located and Samba mounts it, doing smart permissions checking along the way. pam_mount wasn't flexible enough, and I have a web based file manager in PHP which does the same thing, so the code was nearly the same!
Send an "email" to my freshmeat box if you're interested!