{"id":3506,"date":"2022-12-20T17:08:51","date_gmt":"2022-12-20T20:08:51","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pam_umask-man8\/"},"modified":"2022-12-20T17:08:51","modified_gmt":"2022-12-20T20:08:51","slug":"pam_umask-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pam_umask-man8\/","title":{"rendered":"PAM_UMASK (man8)"},"content":{"rendered":"<h1 align=\"center\">PAM_UMASK<\/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> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_umask \u2212 PAM module to set the file mode creation mask<\/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=\"84%\">\n<p style=\"margin-top: 1em\"><b>pam_umask.so<\/b> [debug] [silent] [usergroups] [umask=<i>mask<\/i>]<\/p>\n<\/td>\n<td width=\"5%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_umask is a PAM module to set the file mode creation mask of the current environment. The umask affects the default permissions assigned to newly created files.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The PAM module tries to get the umask value from the following places in the following order:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 umask= entry in the user&#8217;s GECOS field<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 umask= argument<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 UMASK entry from \/etc\/login.defs<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 UMASK= entry from \/etc\/default\/login<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The GECOS field is split on comma &#8216;,&#8217; characters. The module also in addition to the umask= entry recognizes pri= entry, which sets the nice priority value for the session, and ulimit= entry, which sets the maximum size of files the processes in the session can create.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>debug<\/b><\/p>\n<p style=\"margin-left:17%;\">Print debug information.<\/p>\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>usergroups<\/b><\/p>\n<p style=\"margin-left:17%;\">If the user is not root and the username is the same as primary group name, the umask group bits are set to be the same as owner bits (examples: 022 \u2212> 002, 077 \u2212> 007).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>umask=<\/b><i>mask<\/i><\/p>\n<p style=\"margin-left:17%;\">Sets the calling process&#8217;s file mode creation mask (umask) to <b>mask<\/b> &#038; 0777. The value is interpreted as Octal.<\/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> type is provided.<\/p>\n<h2>RETURN VALUES <a name=\"RETURN VALUES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_SUCCESS<\/p>\n<p style=\"margin-left:17%;\">The new umask was set successfully.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_SERVICE_ERR<\/p>\n<p style=\"margin-left:17%;\">No username was given.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_USER_UNKNOWN<\/p>\n<p style=\"margin-left:17%;\">User not known.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Add the following line to \/etc\/pam.d\/login to set the user specific umask at login:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">session optional pam_umask.so umask=0022<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pam.conf<\/b>(5), <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_umask was written by Thorsten Kukuk <kukuk@thkukuk.de>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  pam_umask \u2212 PAM module to set the file mode creation mask <\/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,628],"class_list":["post-3506","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-pam_umask"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3506","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=3506"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3506\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}