![]() |
HOWTO create a safe directory to store files in a secure way at run- and downtime. |
|
Chapter Installation of pam_script |
Installation is very simple. After a make command move the library to the proper
directory, /lib/security.
tar -xzf pam-script-*.tar.gz cd pam-script-* make mv pam_script.so /lib/security chown root:root /lib/security/pam_script.so chmod 755 /lib/security/pam_script.so |
Pam_script.so uses some parameters. All of them are described in the README in the
source directory. Important are:
- runas=#user# : makes the script called run as user #user#
- onauth=/path/to/onauth/script : path to script which is run when in auth part
default is /etc/security/onauth
- onsessionopen=/path/to/onsessionopen/script : path to script which is run when a (valid)session is started
default is /etc/security/onsessionopen
- onsessionclose=/path/to/onsessionclose/script : path to script which is run when a session is ended
default is /etc/security/onsessionclose
After installation the more complex thing is to configure the system to make use of this module.
| Index |