{"id":3133,"date":"2019-06-29T10:14:02","date_gmt":"2019-06-29T02:14:02","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3133"},"modified":"2022-05-11T20:37:29","modified_gmt":"2022-05-11T12:37:29","slug":"passwd","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/passwd","title":{"rendered":"passwd\u547d\u4ee4 – \u4fee\u6539\u7528\u6237\u7684\u5bc6\u7801\u503c"},"content":{"rendered":"\n
passwd\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcdpassword\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u9002\u7528\u4e8e\u4fee\u6539\u7528\u6237\u7684\u5bc6\u7801\u503c\u3002\u540c\u65f6\u4e5f\u53ef\u4ee5\u5bf9\u7528\u6237\u8fdb\u884c\u9501\u5b9a\u7b49\u64cd\u4f5c\uff0c\u4f46\u9700\u8981\u7ba1\u7406\u5458\u8eab\u4efd\u624d\u53ef\u4ee5\u6267\u884c\u3002<\/p>\n\n\n\n
\u5e38\u7528\u683c\u5f0f\uff1a<\/strong>passwd [\u53c2\u6570] \u7528\u6237\u540d<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u4fee\u6539\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684\u5bc6\u7801\u503c\uff1a<\/p>\n\n\n\n \u4fee\u6539\u6307\u5b9a\u7528\u6237\u7684\u5bc6\u7801\u503c\uff1a<\/p>\n\n\n\n \u9501\u5b9a\u6307\u5b9a\u7528\u6237\u7684\u5bc6\u7801\u503c\uff0c\u4e0d\u5141\u8bb8\u5176\u8fdb\u884c\u4fee\u6539\uff1a<\/p>\n\n\n\n \u89e3\u9501\u6307\u5b9a\u7528\u6237\u7684\u5bc6\u7801\u503c\uff0c\u5141\u8bb8\u5176\u8fdb\u884c\u4fee\u6539\uff1a<\/p>\n\n\n\n \u5f3a\u5236\u6307\u5b9a\u7684\u7528\u6237\u5728\u4e0b\u6b21\u767b\u9646\u65f6\u5fc5\u987b\u91cd\u7f6e\u5176\u5bc6\u7801\uff1a<\/p>\n\n\n\n \u5220\u9664\u6307\u5b9a\u7528\u6237\u7684\u5bc6\u7801\u503c\uff1a<\/p>\n\n\n\n \u67e5\u770b\u6307\u5b9a\u7528\u6237\u7684\u5bc6\u7801\u72b6\u6001\uff1a<\/p>\n\n\n\n passwd\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcdpassword\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u9002\u7528\u4e8e\u4fee\u6539\u7528\u6237\u7684\u5bc6\u7801\u503c\u3002\u540c\u65f6\u4e5f\u53ef\u4ee5\u5bf9\u7528\u6237\u8fdb\u884c\u9501\u5b9a\u7b49 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3133"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3133"}],"version-history":[{"count":14,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3133\/revisions"}],"predecessor-version":[{"id":9545,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3133\/revisions\/9545"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-d<\/td> \u5220\u9664\u5df2\u6709\u5bc6\u7801<\/td><\/tr> -l<\/td> \u9501\u5b9a\u7528\u6237\u7684\u5bc6\u7801\u503c\uff0c\u4e0d\u5141\u8bb8\u4fee\u6539<\/td><\/tr> -u<\/td> \u89e3\u9501\u7528\u6237\u7684\u5bc6\u7801\u503c\uff0c\u5141\u8bb8\u4fee\u6539<\/td><\/tr> -e<\/td> \u4e0b\u6b21\u767b\u9646\u5f3a\u5236\u4fee\u6539\u5bc6\u7801<\/td><\/tr> -k<\/td> \u7528\u6237\u5728\u671f\u6ee1\u540e\u80fd\u4ecd\u80fd\u4f7f\u7528 <\/td><\/tr> -S<\/td> \u67e5\u8be2\u5bc6\u7801\u72b6\u6001<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# passwd<\/strong>\r\nChanging password for user root.\r\nNew password: \u8f93\u5165\u5bc6\u7801<\/strong>\r\nRetype new password: \u518d\u6b21\u8f93\u5165\u5bc6\u7801<\/strong>\r\npasswd: all authentication tokens updated successfully.\r<\/pre>\n\n\n\n
[root@linuxcool ~]# passwd linuxprobe<\/strong>\r\nChanging password for user linuxprobe.\r\nNew password: \u8f93\u5165\u5bc6\u7801<\/strong>\r\nRetype new password: \u518d\u6b21\u8f93\u5165\u5bc6\u7801<\/strong>\r\npasswd: all authentication tokens updated successfully.\r<\/pre>\n\n\n\n
[root@linuxcool ~]# passwd -l linuxprobe<\/strong>\r\nLocking password for user linuxprobe.\r\npasswd: Success\r<\/pre>\n\n\n\n
[root@linuxcool ~]# passwd -u linuxprobe<\/strong>\r\nUnlocking password for user linuxprobe.\r\npasswd: Success\r<\/pre>\n\n\n\n
[root@linuxcool ~]# passwd -e linuxprobe<\/strong>\r\nExpiring password for user linuxprobe.\r\npasswd: Success\r<\/pre>\n\n\n\n
[root@linuxcool ~]# passwd -d linuxprobe<\/strong>\nRemoving password for user linuxprobe.\npasswd: Success<\/pre>\n\n\n\n
[root@linuxcool ~]# passwd -S linuxprobe<\/strong>\nlinuxprobe NP 2022-05-11 0 99999 7 -1 (Empty password.)\n<\/pre>\n","protected":false},"excerpt":{"rendered":"