Projects / pam_script

pam_script

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
Licenses
Implementation

Recent releases

  •  03 Jul 2008 22:09

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

    •  31 Jul 2007 21:39

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

      •  19 Oct 2006 23:55

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

        •  18 Oct 2006 14:17

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

          •  03 Aug 2006 07:44

            Release Notes: Small changes were made to comply with Debian policy.

            Recent comments

            13 Feb 2003 23:12 iburger

            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 SodaBrew

            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!

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.