3 .\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
5 .\" Manual: Linux\-PAM Manual
6 .\" Source: Linux\-PAM Manual
8 .TH "PAM_SETCRED" "3" "06/27/2006" "Linux\-PAM Manual" "Linux\-PAM Manual"
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 pam_setcred \- establish / delete user credentials
19 #include <security/pam_appl.h>
23 .BI "int pam_setcred(pam_handle_t\ *" "pamh" ", int\ " "flags" ");"
28 function is used to establish, maintain and delete the credentials of a user. It should be called after a user has been authenticated and before a session is opened for the user (with
29 \fBpam_open_session\fR(3)).
31 A credential is something that the user possesses. It is some property, such as a
33 ticket, or a supplementary group membership that make up the uniqueness of a given user. On a Linux system the user's
36 \fIGID\fR's are credentials too. However, it has been decided that these properties (along with the default supplementary groups of which the user is a member) are credentials that should be set directly by the application and not by PAM. Such credentials should be established, by the application, prior to a call to this function. For example,
38 (or equivalent) should have been performed.
41 \fIflags\fR, any one of which, may be logically OR'd with
42 \fBPAM_SILENT\fR, are:
45 Initialize the credentials for the user.
48 Delete the user's credentials.
51 Fully reinitialize the user's credentials.
54 Extend the lifetime of the existing credentials.
61 Failed to set user credentials.
64 User credentials are expired.
67 Failed to retrieve user credentials.
70 Data was successful stored.
73 A NULL pointer was submitted as PAM handle, the function was called by a module or another system error occured.
76 User is not known to an authentication module.
80 \fBpam_authenticate\fR(3),
81 \fBpam_open_session\fR(3),