Home Up Previous Next TORQUE Resource Manager

3.4 Host Security

3.4 Host Security

For systems requiring dedicated access to compute nodes (for example, users with sensitive data), TORQUE prologue and epilogue scripts provide a vehicle to leverage the authenication provided by linux-PAM modules. (See Appendix G Prologue and Epilogue Scripts for more information.)

To allow only users with running jobs (and root) to access compute nodes, do the following:

  • Untar contrib/pam_authuser.tar.gz (found in the src tar ball).
  • Compile pam_authuser.c with make and make install on every compute node.
  • Edit /etc/system-auth as described in README.pam_authuser, again on every compute node.
  • Either make a tarball of the epilogue* and prologue* scripts (to preserve the symbolic link) and untar it in the mom_priv directory, or just copy epilogue* and prologue* to mom_priv/.

The prologue* scripts are Perl scripts that add the user of the job to /etc/authuser. The epilogue* scripts then remove the first occurrence of the user from /etc/authuser. File locking is employed in all scripts to eliminate the chance of race conditions. There is also some commented code in the epilogue* scripts, which, if uncommented, kills all processes owned by the user (using pkill), provided that the user doesn't have another valid job on the same node.

Note prologue and epilogue scripts were added to the pam_authuser tarball in version 2.1 of TORQUE.


Home Up Previous Next