pam_resgmr

## Name

pam_resmgr — PAM module for resource manager

## Synopsis

`pam_resmgr.so` [ `OPTIONS` ]

## Description

pam_resgmr is a PAM session module that can be used to register a user session with the resource manager at login, and remove it when the user logs out. It can also be configured to grant the user access to additional resources classes.

## Options

`grant=`class``

  This option instructs pam_resmgr to tell the resource manager to grant the user access to resource class `class` in addition to any classes defined by the default access control lists given in `/etc/resmgr.conf`

`fake_ttyname`

  use a generated fake tty name when registering with resmgr. This is useful for ssh with privilege separation as it always sets the pam tty to the same string for all users.

`fake_ttyname_if_needed`

  as above but only use the fake name if the pam tty doesn't start with a slash or colon. This is useful if ssh and other services share the same pam config file.

## Examples

Add the following line to `/etc/pam.d/sshd`:

    session optional pam_resmgr.so fake_ttyname

For XDM you might want to use

    session optional pam_resmgr.so grant=desktop

or just

    session optional pam_resmgr.so

## See Also

resmgrd(8) resmgr(1) resmgr.conf(5) pam(8)