{"id":3363,"date":"2022-12-20T17:02:27","date_gmt":"2022-12-20T20:02:27","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pam_mkhomedir-man8\/"},"modified":"2022-12-20T17:02:27","modified_gmt":"2022-12-20T20:02:27","slug":"pam_mkhomedir-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pam_mkhomedir-man8\/","title":{"rendered":"PAM_MKHOMEDIR (man8)"},"content":{"rendered":"<h1 align=\"center\">PAM_MKHOMEDIR<\/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=\"#FILES\">FILES<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_mkhomedir \u2212 PAM module to create users home directory<\/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=\"81%\">\n<p style=\"margin-top: 1em\"><b>pam_mkhomedir.so<\/b> [silent] [umask=<i>mode<\/i>] [skel=<i>skeldir<\/i>]<\/p>\n<\/td>\n<td width=\"8%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The pam_mkhomedir PAM module will create a users home directory if it does not exist when the session begins. This allows users to be present in central database (such as NIS, kerberos or LDAP) without using a distributed file system or pre\u2212creating a large number of directories. The skeleton directory (usually \/etc\/skel\/) is used to copy default files and also sets a umask for the creation.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The new users home directory will not be removed after logout of the user.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>silent<\/b><\/p>\n<p style=\"margin-left:17%;\">Don&#8217;t print informative messages.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>umask=<\/b><i>mask<\/i><\/p>\n<p style=\"margin-left:17%;\">The user file\u2212creation mask is set to <i>mask<\/i>. The default value of mask is 0022.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>skel=<\/b><i>\/path\/to\/skel\/directory<\/i><\/p>\n<p style=\"margin-left:17%;\">Indicate an alternative skel directory to override the default \/etc\/skel.<\/p>\n<h2>MODULE TYPES PROVIDED <a name=\"MODULE TYPES PROVIDED\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Only the <b>session<\/b> module type is provided.<\/p>\n<h2>RETURN VALUES <a name=\"RETURN VALUES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_BUF_ERR<\/p>\n<p style=\"margin-left:17%;\">Memory buffer error.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_CRED_INSUFFICIENT<\/p>\n<p style=\"margin-left:17%;\">Insufficient credentials to access authentication data.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_PERM_DENIED<\/p>\n<p style=\"margin-left:17%;\">Not enough permissions to create the new directory or read the skel directory.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_USER_UNKNOWN<\/p>\n<p style=\"margin-left:17%;\">User not known to the underlying authentication module.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_SUCCESS<\/p>\n<p style=\"margin-left:17%;\">Environment variables were set.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/skel<\/p>\n<p style=\"margin-left:17%;\">Default skel directory<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">A sample \/etc\/pam.d\/login file:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">auth requisite pam_securetty.so <br \/> auth sufficient pam_ldap.so <br \/> auth required pam_unix.so <br \/> auth required pam_nologin.so <br \/> account sufficient pam_ldap.so <br \/> account required pam_unix.so <br \/> password required pam_unix.so <br \/> session required pam_mkhomedir.so skel=\/etc\/skel\/ umask=0022 <br \/> session required pam_unix.so <br \/> session optional pam_lastlog.so <br \/> session optional pam_mail.so standard<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pam.d<\/b>(5), <b>pam<\/b>(8).<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_mkhomedir was written by Jason Gunthorpe <jgg@debian.org>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  pam_mkhomedir \u2212 PAM module to create users home directory <\/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,491],"class_list":["post-3363","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-pam_mkhomedir"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3363","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=3363"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3363\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}