File: pam_cap.8

package info (click to toggle)
libcap2 1:2.24-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 704 kB
  • ctags: 409
  • sloc: ansic: 2,657; sh: 735; makefile: 202
file content (103 lines) | stat: -rw-r--r-- 2,693 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
'\" t
.\"     Title: pam_cap
.\"    Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\"      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 <morgan@kernel\&.org>