{"id":293065,"date":"2024-09-19T20:04:09","date_gmt":"2024-09-19T12:04:09","guid":{"rendered":"https:\/\/gulass.cn\/pmlszyhrzxxp.html"},"modified":"2024-09-19T20:04:09","modified_gmt":"2024-09-19T12:04:09","slug":"pmlszyhrzxxp","status":"publish","type":"post","link":"https:\/\/gulass.cn\/pmlszyhrzxxp.html","title":{"rendered":"passwd \u547d\u4ee4\uff1a\u8bbe\u7f6e\u7528\u6237\u8ba4\u8bc1\u4fe1\u606f\uff0c\u666e\u901a\u7528\u6237\u5982\u4f55\u66f4\u6539\u5bc6\u7801"},"content":{"rendered":"

passwd-\u7528\u4e8e\u8ba9\u7528\u6237\u53ef\u4ee5\u4fee\u6539\u81ea\u5df1\u7684\u5bc6\u7801<\/p>\n

\u7528\u4e8e\u8ba9\u7528\u6237\u53ef\u4ee5\u4fee\u6539\u81ea\u5df1\u7684\u5bc6\u7801<\/p>\n

\u8865\u5145\u8bf4\u660e<\/p>\n

passwd\u547d\u4ee4<\/a>\u7528\u4e8e\u8bbe\u7f6e\u7528\u6237\u7684\u8ba4\u8bc1\u4fe1\u606f\uff0c\u5305\u62ec\u7528\u6237\u5bc6\u7801\u3001\u5bc6\u7801\u8fc7\u671f\u65f6\u95f4\u7b49\u3002\u7cfb\u7edf\u7ba1\u7406\u8005\u5219\u80fd\u7528\u5b83\u7ba1\u7406\u7cfb\u7edf\u7528\u6237\u7684\u5bc6\u7801\u3002\u53ea\u6709\u7ba1\u7406\u8005\u53ef\u4ee5\u6307\u5b9a\u7528\u6237\u540d\u79f0linux\u547d\u4ee4\u884c\uff0c\u901a\u5e38\u7528\u6237\u53ea\u80fd\u53d8\u66f4\u81ea\u5df1\u7684\u5bc6\u7801\u3002<\/p>\n

\u53e5\u578b<\/p>\n

\u547d\u4ee4password\u8f93\u5165_\u547d\u4ee4\u63d0\u793a\u7b26_linux password\u547d\u4ee4<\/p>\n

\n

  1. passwd<\/span>(\u9009\u9879)(\u53c2\u6570)<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

    \u9009\u9879<\/p>\n

    \n

    1. -<\/span>d<\/span>\uff1a\u5220\u9664\u5bc6\u7801\uff0c\u4ec5\u6709\u7cfb\u7edf\u7ba1\u7406\u8005\u624d\u80fd\u4f7f\u7528\uff1b<\/span><\/code><\/li>
    2. -<\/span>f<\/span>\uff1a\u5f3a\u5236\u6267\u884c\uff1b<\/span><\/code><\/li>
    3. -<\/span>k<\/span>\uff1a\u8bbe\u7f6e\u53ea\u6709\u5728\u5bc6\u7801\u8fc7\u671f\u5931\u6548\u540e\uff0c\u65b9\u80fd\u66f4\u65b0\uff1b<\/span><\/code><\/li>
    4. -<\/span>l<\/span>\uff1a\u9501\u4f4f\u5bc6\u7801\uff1b<\/span><\/code><\/li>
    5. -<\/span>s<\/span>\uff1a\u5217\u51fa\u5bc6\u7801\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u4ec5\u6709\u7cfb\u7edf\u7ba1\u7406\u8005\u624d\u80fd\u4f7f\u7528\uff1b<\/span><\/code><\/li>
    6. -<\/span>u<\/span>\uff1a\u89e3\u5f00\u5df2\u4e0a\u9501\u7684\u5e10\u53f7\u3002<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

      \u53c2\u6570<\/p>\n

      \u7528\u6237\u540d\uff1a\u987b\u8981\u8bbe\u7f6e\u5bc6\u7801\u7684\u7528\u6237\u540d\u3002<\/p>\n

      linux password\u547d\u4ee4_\u547d\u4ee4password\u8f93\u5165_\u547d\u4ee4\u63d0\u793a\u7b26<\/p>\n

      \u77e5\u8bc6\u6269\u5145<\/p>\n

      \u4e0e\u7528\u6237\u3001\u7ec4\u5e10\u6237\u4fe1\u606f\u76f8\u5173\u7684\u6587\u4ef6<\/p>\n

      \u50a8\u5b58\u7528\u6237\u4fe1\u606f\uff1a<\/p>\n

      \n

      1. \/etc\/<\/span>passwd<\/span><\/code><\/li>
      2. \/<\/span>etc<\/span>\/<\/span>shadow<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

        \u50a8\u5b58\u7ec4\u4fe1\u606f\uff1a<\/p>\n

        \u547d\u4ee4\u63d0\u793a\u7b26_\u547d\u4ee4password\u8f93\u5165_linux password\u547d\u4ee4<\/p>\n

        \n

        1. \/etc\/<\/span>group<\/span><\/code><\/li>
        2. \/<\/span>etc<\/span>\/<\/span>gshadow<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

          \u7528\u6237\u4fe1\u606f\u6587\u4ef6\u5256\u6790\uff08\u6bcf\u9879\u7528:\u9694\u5f00\uff09<\/p>\n

          \n

          1. \u4f8b\u5982\uff1a<\/span>jack<\/span>:<\/span>X<\/span>:<\/span>503<\/span>:<\/span>504<\/span>:::<\/span>\/home\/<\/span>jack<\/span>\/:<\/span>\/bin\/<\/span>bash<\/span><\/code><\/li>
          2. jack<\/span>\u3000\u3000<\/span># \u7528\u6237\u540d<\/span><\/code><\/li>
          3. X<\/span>\u3000\u3000<\/span># \u53e3\u4ee4\u3001\u5bc6\u7801<\/span><\/code><\/li>
          4. 503<\/span>\u3000\u3000<\/span># \u7528\u6237id\uff080\u4ee3\u8868root\u3001\u666e\u901a\u65b0\u5efa\u7528\u6237\u4ece500\u5f00\u59cb\uff09<\/span><\/code><\/li>
          5. 504<\/span>\u3000\u3000<\/span># \u6240\u5728\u7ec4<\/span><\/code><\/li>
          6. :\u3000\u3000<\/span># \u63cf\u8ff0<\/span><\/code><\/li>
          7. \/<\/span>home<\/span>\/<\/span>jack<\/span>\/\u3000\u3000<\/span># \u7528\u6237\u4e3b\u76ee\u5f55<\/span><\/code><\/li>
          8. \/<\/span>bin<\/span>\/<\/span>bash<\/span>\u3000\u3000<\/span># \u7528\u6237\u7f3a\u7701Shell<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

            \u7ec4\u4fe1\u606f\u6587\u4ef6\u5256\u6790<\/p>\n

            \n

            1. \u4f8b\u5982\uff1a<\/span>jack<\/span>:<\/span>$<\/span>!<\/span>$<\/span>:???:<\/span>13801<\/span>:<\/span>0<\/span>:<\/span>99999<\/span>:<\/span>7<\/span>:*:*:<\/span><\/code><\/li>
            2. jack<\/span>\u3000\u3000<\/span># \u7ec4\u540d<\/span><\/code><\/li>
            3. $<\/span>!<\/span>$<\/span>\u3000\u3000<\/span># \u88ab\u52a0\u5bc6\u7684\u53e3\u4ee4<\/span><\/code><\/li>
            4. 13801<\/span>\u3000\u3000<\/span># \u521b\u5efa\u65e5\u671f\u4e0e\u4eca\u5929\u76f8\u9694\u7684\u5929\u6570<\/span><\/code><\/li>
            5. 0<\/span>\u3000\u3000<\/span># \u53e3\u4ee4\u6700\u77ed\u4f4d\u6570<\/span><\/code><\/li>
            6. 99999<\/span>\u3000\u3000<\/span># \u7528\u6237\u53e3\u4ee4<\/span><\/code><\/li>
            7. 7<\/span>\u3000\u3000<\/span># \u52307\u5929\u65f6\u63d0\u9192<\/span><\/code><\/li>
            8. *\u3000\u3000<\/span># \u7981\u7528\u5929\u6570<\/span><\/code><\/li>
            9. *\u3000\u3000<\/span># \u8fc7\u671f\u5929\u6570<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

              \u5b9e\u4f8b<\/p>\n

              \u82e5\u679c\u662f\u666e\u901a\u7528\u6237\u6267\u884cpasswd\u53ea\u80fd\u66f4\u6539\u81ea\u5df1\u7684\u5bc6\u7801\u3002\u5047\u5982\u65b0\u5efa\u7528\u6237\u540e\uff0c\u8981\u4e3a\u65b0\u7528\u6237\u521b\u5efa\u5bc6\u7801\uff0c\u5219\u7528passwd\u7528\u6237\u540d\uff0c\u6ce8\u610f\u8981\u4ee5root\u7528\u6237\u7684\u6743\u9650\u6765\u521b\u5efa\u3002<\/p>\n

              \n

              1. [<\/span>root@localhost <\/span>~]#<\/span> passwd linuxde <\/span># \u66f4\u6539\u6216\u521b\u5efalinuxde\u7528\u6237\u7684\u5bc6\u7801\uff1b<\/span><\/code><\/li>
              2. Changing<\/span> password <\/span>for<\/span> user linuxde<\/span>.<\/span><\/code><\/li>
              3. New<\/span> UNIX password<\/span>:<\/span> <\/span># \u8bf7\u8f93\u5165\u65b0\u5bc6\u7801\uff1b<\/span><\/code><\/li>
              4. Retype<\/span> <\/span>new<\/span> UNIX password<\/span>:<\/span> <\/span># \u518d\u8f93\u5165\u4e00\u6b21\uff1b<\/span><\/code><\/li>
              5. passwd<\/span>:<\/span> all authentication tokens updated successfully<\/span>.<\/span> <\/span># \u6210\u529f\uff1b<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

                \u666e\u901a\u7528\u6237\u5047\u5982\u60f3\u4fee\u6539\u81ea\u5df1\u7684\u5bc6\u7801linux password\u547d\u4ee4<\/strong>\uff0c\u76f4\u63a5\u8fd0\u884cpasswd\u5373\u53eflinux password\u547d\u4ee4<\/strong>\uff0c\u4f8b\u5982\u5f53\u524d\u64cd\u4f5c\u7684\u7528\u6237\u662flinuxde\u3002<\/p>\n

                \n

                1. [<\/span>linuxde@localhost <\/span>~]<\/span>$ passwd<\/span><\/code><\/li>
                2. Changing<\/span> password <\/span>for<\/span> user linuxde<\/span>.<\/span> <\/span># \u66f4\u6539linuxde\u7528\u6237\u7684\u5bc6\u7801\uff1b<\/span><\/code><\/li>
                3. (<\/span>current<\/span>)<\/span> UNIX password<\/span>:<\/span> <\/span># \u8bf7\u8f93\u5165\u5f53\u524d\u5bc6\u7801\uff1b<\/span><\/code><\/li>
                4. New<\/span> UNIX password<\/span>:<\/span> <\/span># \u8bf7\u8f93\u5165\u65b0\u5bc6\u7801\uff1b<\/span><\/code><\/li>
                5. Retype<\/span> <\/span>new<\/span> UNIX password<\/span>:<\/span> <\/span># \u786e\u8ba4\u65b0\u5bc6\u7801\uff1b<\/span><\/code><\/li>
                6. passwd<\/span>:<\/span> all authentication tokens updated successfully<\/span>.<\/span> <\/span># \u66f4\u6539\u6210\u529f\uff1b<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

                  \u4f8b\u5982\u6211\u4eec\u8ba9\u67d0\u4e2a\u7528\u6237\u4e0d\u80fd\u66f4\u6539\u5bc6\u7801red hat linux \u4e0b\u8f7d\uff0c\u53ef\u4ee5\u7528-l\u9009\u9879\u6765\u9501\u5b9a\uff1a<\/p>\n

                  \n

                  1. [<\/span>root@localhost <\/span>~]#<\/span> passwd <\/span>-<\/span>l linuxde <\/span># \u9501\u5b9a\u7528\u6237linuxde\u4e0d\u80fd\u66f4\u6539\u5bc6\u7801\uff1b<\/span><\/code><\/li>
                  2. Locking<\/span> password <\/span>for<\/span> user linuxde<\/span>.<\/span><\/code><\/li>
                  3. passwd<\/span>:<\/span> <\/span>Success<\/span> <\/span># \u9501\u5b9a\u6210\u529f\uff1b<\/span><\/code><\/li>
                  4. <\/code><\/li>
                  5. [<\/span>linuxde@localhost <\/span>~]#<\/span> su linuxde <\/span># \u901a\u8fc7su\u5207\u6362\u5230linuxde\u7528\u6237\uff1b<\/span><\/code><\/li>
                  6. [<\/span>linuxde@localhost <\/span>~]<\/span>$ passwd <\/span># linuxde\u6765\u66f4\u6539\u5bc6\u7801\uff1b<\/span><\/code><\/li>
                  7. Changing<\/span> password <\/span>for<\/span> user linuxde<\/span>.<\/span><\/code><\/li>
                  8. Changing<\/span> password <\/span>for<\/span> linuxde<\/span><\/code><\/li>
                  9. (<\/span>current<\/span>)<\/span> UNIX password<\/span>:<\/span> <\/span># \u8f93\u5165linuxde\u7684\u5f53\u524d\u5bc6\u7801\uff1b<\/span><\/code><\/li>
                  10. passwd<\/span>:<\/span> <\/span>Authentication<\/span> token manipulation error <\/span># \u5931\u8d25\uff0c\u4e0d\u80fd\u66f4\u6539\u5bc6\u7801\uff1b<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

                    \u518d\u6765\u4e00\u4f8b\uff1a<\/p>\n

                    \n

                    1. [<\/span>root@localhost <\/span>~]#<\/span> passwd <\/span>-<\/span>d linuxde <\/span># \u6e05\u9664linuxde\u7528\u6237\u5bc6\u7801\uff1b<\/span><\/code><\/li>
                    2. Removing<\/span> password <\/span>for<\/span> user linuxde<\/span>.<\/span><\/code><\/li>
                    3. passwd<\/span>:<\/span> <\/span>Success<\/span> <\/span># \u6e05\u9664\u6210\u529f\uff1b<\/span><\/code><\/li>
                    4. <\/code><\/li>
                    5. [<\/span>root@localhost <\/span>~]#<\/span> passwd <\/span>-<\/span>S linuxde <\/span># \u67e5\u8be2linuxde\u7528\u6237\u5bc6\u7801\u72b6\u6001\uff1b<\/span><\/code><\/li>
                    6. Empty<\/span> password<\/span>.<\/span> <\/span># \u7a7a\u5bc6\u7801\uff0c\u4e5f\u5c31\u662f\u6ca1\u6709\u5bc6\u7801\uff1b<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n

                      \u6ce8\u610f\uff1a\u5f53\u6211\u4eec\u6d88\u9664\u4e00\u4e2a\u7528\u6237\u7684\u5bc6\u7801\u65f6\uff0c\u767b\u9646\u65f6\u5c31\u65e0\u9700\u5bc6\u7801\uff0c\u8fd9\u4e00\u70b9\u8981\u52a0\u4ee5\u6ce8\u610f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

                      \u7528\u4e8e\u8ba9\u7528\u6237\u53ef\u4ee5\u66f4\u6539\u81ea\u5df1\u7684\u5bc6\u7801\u7528\u4e8e\u8ba9\u7528\u6237\u53ef\u4ee5\u66f4\u6539\u81ea\u5df1\u7684\u5bc6\u7801\u53ea\u6709\u7ba1\u7406\u8005\u53ef\u4ee5\u6307\u5b9a\u7528\u6237\u540d\u79f0\uff0c\u4e00\u822c\u7528\u6237\u53ea\u80fd\u53d8\u66f4\u81ea\u5df1\u7684\u5bc6\u7801\u3002\u5982\u679c\u662f\u666e\u901a\u7528\u6237\u6267\u884cpasswd\u53ea\u80fd\u4fee\u6539\u81ea\u5df1\u7684\u5bc6\u7801\u3002\u666e\u901a\u7528\u6237\u5982\u679c\u60f3\u66f4\u6539\u81ea\u5df1\u7684\u5bc6\u7801\uff0c\u76f4\u63a5\u8fd0\u884cpasswd\u5373\u53ef\uff0c\u6bd4\u5982\u5f53\u524d\u64cd\u4f5c\u7684\u7528\u6237\u662flinuxde\u3002\u6bd4\u5982\u6211\u4eec\u8ba9\u67d0\u4e2a\u7528\u6237\u4e0d\u80fd\u4fee\u6539\u5bc6\u7801\uff0c\u53ef\u4ee5\u7528-l\u9009\u9879\u6765\u9501\u5b9a\uff1a<\/p>\n","protected":false},"author":1,"featured_media":293066,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[3080],"class_list":["post-293065","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-pcuifaplocp"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/293065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=293065"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/293065\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/293066"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=293065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=293065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=293065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}