{"id":3771,"date":"2022-12-20T17:20:01","date_gmt":"2022-12-20T20:20:01","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pam_keyinit-man8\/"},"modified":"2022-12-20T17:20:01","modified_gmt":"2022-12-20T20:20:01","slug":"pam_keyinit-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pam_keyinit-man8\/","title":{"rendered":"PAM_KEYINIT (man8)"},"content":{"rendered":"<h1 align=\"center\">PAM_KEYINIT<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#MODULE TYPES PROVIDED\">MODULE TYPES PROVIDED<\/a><br \/> <a href=\"#RETURN VALUES\">RETURN VALUES<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_keyinit \u2212 Kernel session keyring initialiser module<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"60%\">\n<p style=\"margin-top: 1em\"><b>pam_keyinit.so<\/b> [debug] [force] [revoke]<\/p>\n<\/td>\n<td width=\"29%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The pam_keyinit PAM module ensures that the invoking process has a session keyring other than the user default session keyring.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The session component of the module checks to see if the process&#8217;s session keyring is the user default, and, if it is, creates a new anonymous session keyring with which to replace it.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If a new session keyring is created, it will install a link to the user common keyring in the session keyring so that keys common to the user will be automatically accessible through it.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The session keyring of the invoking process will thenceforth be inherited by all its children unless they override it.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This module is intended primarily for use by login processes. Be aware that after the session keyring has been replaced, the old session keyring and the keys it contains will no longer be accessible.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This module should not, generally, be invoked by programs like <b>su<\/b>, since it is usually desirable for the key set to percolate through to the alternate context. The keys have their own permissions system to manage this.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This module should be included as early as possible in a PAM configuration, so that other PAM modules can attach tokens to the keyring.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The keyutils package is used to manipulate keys more directly. This can be obtained from:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><font color=\"#0000FF\">Keyutils<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small><\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>debug<\/b><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Log debug information with <b>syslog<\/b>(3).<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>force<\/b><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Causes the session keyring of the invoking process to be replaced unconditionally.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>revoke<\/b><\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Causes the session keyring of the invoking process to be revoked when the invoking process exits if the session keyring was created for this process in the first place.<\/font><\/p>\n<h2>MODULE TYPES PROVIDED <a name=\"MODULE TYPES PROVIDED\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">Only the <b>session<\/b> module type is provided.<\/font><\/p>\n<h2>RETURN VALUES <a name=\"RETURN VALUES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">PAM_SUCCESS<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">This module will usually return this value<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">PAM_AUTH_ERR<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Authentication failure.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">PAM_BUF_ERR<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Memory buffer error.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">PAM_IGNORE<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">The return value should be ignored by PAM dispatch.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">PAM_SERVICE_ERR<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">Cannot determine the user name.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">PAM_SESSION_ERR<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">This module will return this value if its arguments are invalid or if a system error such as ENOMEM occurs.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">PAM_USER_UNKNOWN<\/font><\/p>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">User not known.<\/font><\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">Add this line to your login entries to start each login session with its own session keyring:<\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\">session required pam_keyinit.so<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">This will prevent keys from one session leaking into another session for the same user.<\/font><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>pam.conf<\/b>(5), <b>pam.d<\/b>(5), <b>pam<\/b>(8)<b>keyctl<\/b>(1)<\/font><\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">pam_keyinit was written by David Howells, <dhowells@redhat.com>.<\/font><\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">1.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"12%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">Keyutils<\/font><\/p>\n<\/td>\n<td width=\"71%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">http:\/\/people.redhat.com\/~dhowells\/keyutils\/<\/font><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  pam_keyinit \u2212 Kernel session keyring initialiser module <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,873],"class_list":["post-3771","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-pam_keyinit"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3771"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3771\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}