#!/bin/bash # add invocation of pam_exec to post-login actions sed '/^##pam_exec {{{/,/^##pam_exec }}}/d' -i /etc/pam.d/postlogin-ac cat >>/etc/pam.d/postlogin-ac <