\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
<\/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
\/etc\/<\/span>passwd<\/span><\/code><\/li>\/<\/span>etc<\/span>\/<\/span>shadow<\/span><\/code><\/li><\/ol><\/pre>\n<\/p>\n\u50a8\u5b58\u7ec4\u4fe1\u606f\uff1a<\/p>\n
<\/p>\n
\n
\/etc\/<\/span>group<\/span><\/code><\/li>\/<\/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
\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>jack<\/span>\u3000\u3000<\/span># \u7528\u6237\u540d<\/span><\/code><\/li>X<\/span>\u3000\u3000<\/span># \u53e3\u4ee4\u3001\u5bc6\u7801<\/span><\/code><\/li>503<\/span>\u3000\u3000<\/span># \u7528\u6237id\uff080\u4ee3\u8868root\u3001\u666e\u901a\u65b0\u5efa\u7528\u6237\u4ece500\u5f00\u59cb\uff09<\/span><\/code><\/li>504<\/span>\u3000\u3000<\/span># \u6240\u5728\u7ec4<\/span><\/code><\/li>:\u3000\u3000<\/span># \u63cf\u8ff0<\/span><\/code><\/li>\/<\/span>home<\/span>\/<\/span>jack<\/span>\/\u3000\u3000<\/span># \u7528\u6237\u4e3b\u76ee\u5f55<\/span><\/code><\/li>\/<\/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
\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>jack<\/span>\u3000\u3000<\/span># \u7ec4\u540d<\/span><\/code><\/li>$<\/span>!<\/span>$<\/span>\u3000\u3000<\/span># \u88ab\u52a0\u5bc6\u7684\u53e3\u4ee4<\/span><\/code><\/li>13801<\/span>\u3000\u3000<\/span># \u521b\u5efa\u65e5\u671f\u4e0e\u4eca\u5929\u76f8\u9694\u7684\u5929\u6570<\/span><\/code><\/li>0<\/span>\u3000\u3000<\/span># \u53e3\u4ee4\u6700\u77ed\u4f4d\u6570<\/span><\/code><\/li>99999<\/span>\u3000\u3000<\/span># \u7528\u6237\u53e3\u4ee4<\/span><\/code><\/li>7<\/span>\u3000\u3000<\/span># \u52307\u5929\u65f6\u63d0\u9192<\/span><\/code><\/li>*\u3000\u3000<\/span># \u7981\u7528\u5929\u6570<\/span><\/code><\/li>*\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
[<\/span>root@localhost <\/span>~]#<\/span> passwd linuxde <\/span># \u66f4\u6539\u6216\u521b\u5efalinuxde\u7528\u6237\u7684\u5bc6\u7801\uff1b<\/span><\/code><\/li>Changing<\/span> password <\/span>for<\/span> user linuxde<\/span>.<\/span><\/code><\/li>New<\/span> UNIX password<\/span>:<\/span> <\/span># \u8bf7\u8f93\u5165\u65b0\u5bc6\u7801\uff1b<\/span><\/code><\/li>Retype<\/span> <\/span>new<\/span> UNIX password<\/span>:<\/span> <\/span># \u518d\u8f93\u5165\u4e00\u6b21\uff1b<\/span><\/code><\/li>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
[<\/span>linuxde@localhost <\/span>~]<\/span>$ passwd<\/span><\/code><\/li>Changing<\/span> password <\/span>for<\/span> user linuxde<\/span>.<\/span> <\/span># \u66f4\u6539linuxde\u7528\u6237\u7684\u5bc6\u7801\uff1b<\/span><\/code><\/li>(<\/span>current<\/span>)<\/span> UNIX password<\/span>:<\/span> <\/span># \u8bf7\u8f93\u5165\u5f53\u524d\u5bc6\u7801\uff1b<\/span><\/code><\/li>New<\/span> UNIX password<\/span>:<\/span>