{"id":4305,"date":"2022-12-20T17:48:55","date_gmt":"2022-12-20T20:48:55","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/shadow-man5\/"},"modified":"2022-12-20T17:48:55","modified_gmt":"2022-12-20T20:48:55","slug":"shadow-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/shadow-man5\/","title":{"rendered":"SHADOW (man5)"},"content":{"rendered":"<h1 align=\"center\">SHADOW<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">shadow \u2212 shadowed password file<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">shadow is a file which contains the password information for the system&#8217;s accounts and optional aging information.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This file must not be readable by regular users if password security is to be maintained.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Each line of this file contains 9 fields, separated by colons (\u201c:\u201d), in the following order:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>login name<\/b><\/p>\n<p style=\"margin-left:17%;\">It must be a valid account name, which exist on the system.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>encrypted password<\/b><\/p>\n<p style=\"margin-left:17%;\">Refer to <b>crypt<\/b>(3) for details on how this string is interpreted.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If the password field contains some string that is not a valid result of <b>crypt<\/b>(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">This field may be empty, in which case no passwords are required to authenticate as the specified login name. However, some applications which read the \/etc\/shadow file may decide not to permit any access at all if the password field is empty.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">A password field which starts with an exclamation mark means that the password is locked. The remaining characters on the line represent the password field before the password was locked.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>date of last password change<\/b><\/p>\n<p style=\"margin-left:17%;\">The date of the last password change, expressed as the number of days since Jan 1, 1970.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">The value 0 has a special meaning, which is that the user should change her password the next time she will log in the system.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">An empty field means that password aging features are disabled.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>minimum password age<\/b><\/p>\n<p style=\"margin-left:17%;\">The minimum password age is the number of days the user will have to wait before she will be allowed to change her password again.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">An empty field and value 0 mean that there are no minimum password age.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>maximum password age<\/b><\/p>\n<p style=\"margin-left:17%;\">The maximum password age is the number of days after which the user will have to change her password.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">After this number of days is elapsed, the password may still be valid. The user should be asked to change her password the next time she will log in.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">An empty field means that there are no maximum password age, no password warning period, and no password inactivity period (see below).<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If the maximum password age is lower than the minimum password age, the user cannot change her password.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>password warning period<\/b><\/p>\n<p style=\"margin-left:17%;\">The number of days before a password is going to expire (see the maximum password age above) during which the user should be warned.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">An empty field and value 0 mean that there are no password warning period.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>password inactivity period<\/b><\/p>\n<p style=\"margin-left:17%;\">The number of days after a password has expired (see the maximum password age above) during which the password should still be accepted (and the user should update her password during the next login).<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">After expiration of the password and this expiration period is elapsed, no login is possible using the current user&#8217;s password. The user should contact her administrator.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">An empty field means that there are no enforcement of an inactivity period.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>account expiration date<\/b><\/p>\n<p style=\"margin-left:17%;\">The date of expiration of the account, expressed as the number of days since Jan 1, 1970.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Note that an account expiration differs from a password expiration. In case of an account expiration, the user shall not be allowed to login. In case of a password expiration, the user is not allowed to login using her password.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">An empty field means that the account will never expire.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">The value 0 should not be used as it is interpreted as either an account with no expiration, or as an expiration on Jan 1, 1970.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>reserved field<\/b><\/p>\n<p style=\"margin-left:17%;\">This field is reserved for future use.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/passwd<\/p>\n<p style=\"margin-left:17%;\">User account information.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/shadow<\/p>\n<p style=\"margin-left:17%;\">Secure user account information.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/shadow\u2212<\/p>\n<p style=\"margin-left:17%;\">Backup file for \/etc\/shadow.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Note that this file is used by the tools of the shadow toolsuite, but not by all user and password management tools.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>chage<\/b>(1), <b>login<\/b>(1), <b>passwd<\/b>(1), <b>passwd<\/b>(5), <b>pwck<\/b>(8), <b>pwconv<\/b>(8), <b>pwunconv<\/b>(8), <b>su<\/b>(1), <b>sulogin<\/b>(8).<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  shadow \u2212 shadowed password file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1291,1323],"class_list":["post-4305","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-man5","tag-shadow"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4305","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=4305"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4305\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}