'\" t .\" Title: pam_cap .\" Author: [see the "AUTHORS" section] .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 09/23/2011 .\" Manual: Linux-PAM Manual .\" Source: Linux-PAM Manual .\" Language: English .\" .TH "PAM_CAP" "8" "09/23/2011" "Linux-PAM Manual" "Linux-PAM Manual" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pam_cap \- PAM module to set inheritable capabilities .SH "SYNOPSIS" .HP \w'\fBpam_cap\&.so\fR\ 'u \fBpam_cap\&.so\fR [config=\fI/path/to/capability.conf\fR] [debug] .SH "DESCRIPTION" .PP The pam_cap PAM module sets the current process' inheritable capabilities\&. .PP Capabilities are read from the /etc/security/capability\&.conf config file\&, or alternate file specified with the config= option\&. .PP The module must not be called by a multithreaded application\&. .PP .SH "OPTIONS" .PP \fBconfig=\fR\fB\fI/path/to/capability\&.conf\fR\fR .RS 4 Indicate an alternative capability\&.conf style configuration file to override the default\&. .RE .PP \fBdebug\fR .RS 4 Print debug information\&. .RE .SH "MODULE TYPES PROVIDED" .PP Only the \fBauthentication\fR module type is provided\&. .SH "RETURN VALUES" .PP PAM_AUTH_ERR .RS 4 The user is not known to the system\&. .RE .PP PAM_IGNORE .RS 4 No capabilities found for this user\&. .RE .PP PAM_INCOMPLETE .RS 4 Indicates a PAM-Conversation failure\&. .RE .PP PAM_SUCCESS .RS 4 Capabilities were set\&. .RE .SH "FILES" .PP /etc/security/capability\&.conf .RS 4 Default configuration file .RE .SH "EXAMPLES" .PP Nearly all applications/daemons which use PAM for authentication contain a configuration line: \fI@include common-auth\fR. Thus, to set inheritable capabilities in \fBall\fR of these applications, add the following as the last line to /etc/pam\&.d/common-auth .PP .RS 4 auth optional pam_cap.so .RE .PP To set inheritable capabilities for a user in a \fBspecific\fR application, or in application(s) which do not @include common-auth, add the line below to the application-specific file; e.g. /etc/pam\&.d/myapp .PP .RS 4 auth optional pam_cap.so .RE .PP .SH "SEE ALSO" .PP \fBcapability.conf\fR(5), \fBpam.d\fR(5), \fBpam\fR(7)\&. .SH "AUTHORS" .PP pam_cap was initially written by Andrew G. Morgan