# -*- mode: python; coding: utf-8 -*- include("pam") header(""" /etc/pam.d/common-session - session-related modules common to all services This file is included from other service-specific PAM config files, and should contain a list of modules that define tasks to be performed at the start and end of sessions of *any* kind (both interactive and non-interactive). The default is pam_unix. """) print "session sufficient %s" % pam_module print "session required pam_unix.so" print "session required pam_mkhomedir.so"