pam_jail
— Jail
PAM module
[service-name]
module-type control-flag
pam_jail [arguments]
The jail service module for PAM put users into a jail derived from
their home directory. If a user's home directory as specified in the
passwd structure returned by
getpwnam(3)
contains the string “/./
”, the user is
put into the jail having the portion of the directory name to the left of
the string “/./
” as its root, and the
portion to the right will be the current working directory inside the jail.
Otherwise, the directories specified by the dir
and
cwd
options (see below) are used.
also_root
- Do not hold user ID 0 exempt from the jail requirement.
always
- Report a failure if a root directory could not be derived from the user's
home directory, and the
dir
option was not
specified.
cwd
=directory
- Specify the directory to
chdir(2)
into after a successful
jail_attach(2)
call.
dir
=directory
- Specify the root directory of the jail to use if one could not be derived
from the user's home directory.
The pam_jail
module and this manual page
were developed for the FreeBSD Project by Damien Bobillot