{"id":3689,"date":"2022-12-20T17:19:46","date_gmt":"2022-12-20T20:19:46","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/set_tcb-man8\/"},"modified":"2022-12-20T17:19:46","modified_gmt":"2022-12-20T20:19:46","slug":"set_tcb-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/set_tcb-man8\/","title":{"rendered":"set_tcb (man8)"},"content":{"rendered":"<h1 align=\"center\">set_tcb<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#OVERVIEW\">OVERVIEW<\/a><br \/> <a href=\"#COMMANDS\">COMMANDS<\/a><br \/> <a href=\"#EXIT STATUS\">EXIT STATUS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>set_tcb<\/b> \u2212 Wrapper script to convert between shadow and tcb passwords<\/p>\n<h2>OVERVIEW <a name=\"OVERVIEW\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The tcb package is an alternative to the traditional shadow password scheme, developed by the Openwall Project. It provides the tools tcb_convert(8) and <b>tcb_unconvert<\/b>(8) which converts the actual password files between the <i>\/etc\/shadow<\/i> format and the <i>\/etc\/tcb<\/i> format. These tools do not change other required files, such as PAM files, <i>login.defs<\/i>, or <i>nsswitch.conf<\/i>(5). <b>set_tcb<\/b>(8) makes those changes as well as calling the required tcb conversion tool.<\/p>\n<h2>COMMANDS <a name=\"COMMANDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">set_tcb comes with some very basic options:<\/p>\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=\"7%\">\n<p><b>&#8211;tcb<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>Converts from shadow passwords to tcb passwords, by modifying <i>\/etc\/login.defs<\/i>, <i>\/etc\/nsswitch.conf<\/i>, and <i>\/etc\/pam.d\/system-auth<\/i>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>&#8211;shadow<\/b><\/p>\n<p style=\"margin-left:22%;\">Converts from tcb passwords to shadow passwords, by modifying <i>\/etc\/login.defs<\/i>, <i>\/etc\/nsswitch.conf<\/i>, and <i>\/etc\/pam.d\/system-auth<\/i>.<\/p>\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=\"9%\">\n<p><b>&#8211;hash<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>Configures the system to use the specified password hash. Available choices are \u2019md5\u2019, <i>\/etc\/login.defs<\/i> and <i>\/etc\/pam.d\/system-auth<\/i>. set_tcb does not support using DES crypt passwords.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>&#8211;migrate<\/b><\/p>\n<p style=\"margin-left:22%;\">Configures the system to use pam_tcb instead of pam_unix. Although pam_tcb operates well enough when called as pam_unix, a number of features are not supported until they are specified in <i>\/etc\/pam.d\/system-auth<\/i>, such as selection of password hash. This option will replace calls to pam_unix with calls to pam_tcb and add the supported options. It will also enable blowfish passwords by default. Finally, it will add TCB\/CRYPT-related keywords to <i>\/etc\/login.defs<\/i> if required and comment out the PASS_MIN_LEN option which TCB does not use\/understand.<\/p>\n<p style=\"margin-left:11%;\"><b>&#8211;revert<\/b><\/p>\n<p style=\"margin-left:22%;\">In the unlikely event you wish to revert from using pam_tcb to the original pam_unix, you can do so with this switch. It will replace all calls to pam_tcb with original options to pam_unix. As a result, you will be unable to use alternate password hashes such as blowfish because pam_unix does not understand them, although it will authenticate against alternate password hashes. New passwords will be in the traditional md5 format. It will also uncomment the PASS_MIN_LEN option and comment the USE_TCB option.<\/p>\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=\"7%\">\n<p><b>&#8211;nis<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>Configures <i>\/etc\/pam.d\/system-auth<\/i> to support authentication against NIS. Because NIS passwords are not shadow passwords (functionally equivalent to using <i>\/etc\/passwd<\/i> rather than <i>\/etc\/shadow<\/i> to store passwords), pam_tcb must be told to also look at passwd as a source of passwords instead of just shadow (or tcb). If you are using NIS+ you may also have to manually modifiy <i>system-auth<\/i> and add the &#8220;nisplus&#8221; option (see <b>pam_tcb<\/b>(8) for more details).<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">When set_tcb converts a password type, it will automatically remove the old password format. For instance, when converting to tcb, it will remove <i>\/etc\/shadow<\/i> upon successful completion.<\/p>\n<h2>EXIT STATUS <a name=\"EXIT STATUS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">set_tcb exits with exit status 1 on any failures. No files are replaced on failure. set_tcb exits with exit status 0 on successful conversion.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pam_tcb<\/b>(8), <b>tcb_convert<\/b>(8), <b>tcb_unconvert<\/b>(8), <i>nsswitch.conf<\/i>(5), crypt(3)<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The set_tcb script was written by Vincent Danen <vdanen@annvix.org> for Annvix (<i>http:\/\/annvix.org\/<\/i>).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The tcb suite is developed by the Openwall Project (<i>http:\/\/www.openwall.com\/tcb\/<\/i>)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  set_tcb \u2212 Wrapper script to convert between shadow and tcb passwords <\/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,801],"class_list":["post-3689","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-set_tcb"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3689","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=3689"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3689\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}