{"id":160128,"date":"2019-10-15T09:45:58","date_gmt":"2019-10-15T01:45:58","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=160128"},"modified":"2019-09-27T17:49:53","modified_gmt":"2019-09-27T09:49:53","slug":"related-to-user","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/related-to-user.html","title":{"rendered":"\u6559\u4f60\u73a9\u8f6cLinux\u2014\u4e0e\u7528\u6237\u8d26\u53f7\u6709\u5173\u7684\u7cfb\u7edf\u6587\u4ef6"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5b8c\u6210\u7528\u6237\u7ba1\u7406\u7684\u5de5\u4f5c\u6709\u8bb8\u591a\u79cd\u65b9\u6cd5\uff0c\u4f46\u662f\u6bcf\u4e00\u79cd\u65b9\u6cd5\u5b9e\u9645\u4e0a\u90fd\u662f\u5bf9\u6709\u5173\u7684\u7cfb\u7edf\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\u3002
\n\u4e0e\u7528\u6237\u548c\u7528\u6237\u7ec4\u76f8\u5173\u7684\u4fe1\u606f\u90fd\u5b58\u653e\u5728\u4e00\u4e9b\u7cfb\u7edf\u6587\u4ef6\u4e2d\uff0c\u8fd9\u4e9b\u6587\u4ef6\u5305\u62ec\/etc\/passwd, \/etc\/shadow, \/etc\/group\u7b49\u3002
\n\u4e0b\u9762\u5206\u522b\u4ecb\u7ecd\u8fd9\u4e9b\u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

1\u3001\/etc\/passwd\u6587\u4ef6\u662f\u7528\u6237\u7ba1\u7406\u5de5\u4f5c\u6d89\u53ca\u7684\u6700\u91cd\u8981\u7684\u4e00\u4e2a\u6587\u4ef6\u3002<\/strong><\/div>\n

Linux\u7cfb\u7edf\u4e2d\u7684\u6bcf\u4e2a\u7528\u6237\u90fd\u5728\/etc\/passwd\u6587\u4ef6\u4e2d\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684\u8bb0\u5f55\u884c\uff0c\u5b83\u8bb0\u5f55\u4e86\u8fd9\u4e2a\u7528\u6237\u7684\u4e00\u4e9b\u57fa\u672c\u5c5e\u6027\u3002<\/p>\n

\u8fd9\u4e2a\u6587\u4ef6\u5bf9\u6240\u6709\u7528\u6237\u90fd\u662f\u53ef\u8bfb\u7684\u3002\u5b83\u7684\u5185\u5bb9\u7c7b\u4f3c\u4e0b\u9762\u7684\u4f8b\u5b50\uff1a<\/p>\n

\uff03 cat \/etc\/passwd\r\n\r\nroot:x:0:0:Superuser:\/:\r\ndaemon:x:1:1:System daemons:\/etc:\r\nbin:x:2:2:Owner of system commands:\/bin:\r\nsys:x:3:3:Owner of system files:\/usr\/sys:\r\nadm:x:4:4:System accounting:\/usr\/adm:\r\nuucp:x:5:5:UUCP administrator:\/usr\/lib\/uucp:\r\nauth:x:7:21:Authentication administrator:\/tcb\/files\/auth:\r\ncron:x:9:16:Cron daemon:\/usr\/spool\/cron:\r\nlisten:x:37:4:Network daemon:\/usr\/net\/nls:\r\nlp:x:71:18:Printer administrator:\/usr\/spool\/lp:\r\nsam:x:200:50:Sam san:\/home\/sam:\/bin\/sh<\/pre>\n

\u4ece\u4e0a\u9762\u7684\u4f8b\u5b50\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\/etc\/passwd\u4e2d\u4e00\u884c\u8bb0\u5f55\u5bf9\u5e94\u7740\u4e00\u4e2a\u7528\u6237\uff0c\u6bcf\u884c\u8bb0\u5f55\u53c8\u88ab\u5192\u53f7(:)\u5206\u9694\u4e3a7\u4e2a\u5b57\u6bb5\uff0c\u5176\u683c\u5f0f\u548c\u5177\u4f53\u542b\u4e49\u5982\u4e0b\uff1a<\/p>\n

\u7528\u6237\u540d:\u53e3\u4ee4:\u7528\u6237\u6807\u8bc6\u53f7:\u7ec4\u6807\u8bc6\u53f7:\u6ce8\u91ca\u6027\u63cf\u8ff0:\u4e3b\u76ee\u5f55:\u767b\u5f55Shell<\/pre>\n
1\uff09\"\u7528\u6237\u540d\"\u662f\u4ee3\u8868\u7528\u6237\u8d26\u53f7\u7684\u5b57\u7b26\u4e32\u3002<\/strong><\/span><\/div>\n

\u901a\u5e38\u957f\u5ea6\u4e0d\u8d85\u8fc78\u4e2a\u5b57\u7b26\uff0c\u5e76\u4e14\u7531\u5927\u5c0f\u5199\u5b57\u6bcd\u548c\/\u6216\u6570\u5b57\u7ec4\u6210\u3002\u767b\u5f55\u540d\u4e2d\u4e0d\u80fd\u6709\u5192\u53f7(:)\uff0c\u56e0\u4e3a\u5192\u53f7\u5728\u8fd9\u91cc\u662f\u5206\u9694\u7b26\u3002<\/p>\n

\u4e3a\u4e86\u517c\u5bb9\u8d77\u89c1\uff0c\u767b\u5f55\u540d\u4e2d\u6700\u597d\u4e0d\u8981\u5305\u542b\u70b9\u5b57\u7b26(.)\uff0c\u5e76\u4e14\u4e0d\u4f7f\u7528\u8fde\u5b57\u7b26(-)\u548c\u52a0\u53f7(+)\u6253\u5934\u3002<\/p>\n

2\uff09\u201c\u53e3\u4ee4\u201d\u4e00\u4e9b\u7cfb\u7edf\u4e2d\uff0c\u5b58\u653e\u7740\u52a0\u5bc6\u540e\u7684\u7528\u6237\u53e3\u4ee4\u5b57\u3002<\/strong><\/span><\/div>\n

\u867d\u7136\u8fd9\u4e2a\u5b57\u6bb5\u5b58\u653e\u7684\u53ea\u662f\u7528\u6237\u53e3\u4ee4\u7684\u52a0\u5bc6\u4e32\uff0c\u4e0d\u662f\u660e\u6587\uff0c\u4f46\u662f\u7531\u4e8e\/etc\/passwd\u6587\u4ef6\u5bf9\u6240\u6709\u7528\u6237\u90fd\u53ef\u8bfb\uff0c\u6240\u4ee5\u8fd9\u4ecd\u662f\u4e00\u4e2a\u5b89\u5168\u9690\u60a3\u3002\u56e0\u6b64\uff0c\u73b0\u5728\u8bb8\u591aLinux \u7cfb\u7edf\uff08\u5982SVR4\uff09\u90fd\u4f7f\u7528\u4e86shadow\u6280\u672f\uff0c\u628a\u771f\u6b63\u7684\u52a0\u5bc6\u540e\u7684\u7528\u6237\u53e3\u4ee4\u5b57\u5b58\u653e\u5230\/etc\/shadow\u6587\u4ef6\u4e2d\uff0c\u800c\u5728\/etc\/passwd\u6587\u4ef6\u7684\u53e3\u4ee4\u5b57\u6bb5\u4e2d\u53ea\u5b58\u653e\u4e00\u4e2a\u7279\u6b8a\u7684\u5b57\u7b26\uff0c\u4f8b\u5982\u201cx\u201d\u6216\u8005\u201c*\u201d\u3002<\/p>\n

3\uff09\u201c\u7528\u6237\u6807\u8bc6\u53f7\u201d\u662f\u4e00\u4e2a\u6574\u6570\uff0c\u7cfb\u7edf\u5185\u90e8\u7528\u5b83\u6765\u6807\u8bc6\u7528\u6237\u3002<\/strong><\/span><\/div>\n

\u4e00\u822c\u60c5\u51b5\u4e0b\u5b83\u4e0e\u7528\u6237\u540d\u662f\u4e00\u4e00\u5bf9\u5e94\u7684\u3002\u5982\u679c\u51e0\u4e2a\u7528\u6237\u540d\u5bf9\u5e94\u7684\u7528\u6237\u6807\u8bc6\u53f7\u662f\u4e00\u6837\u7684\uff0c\u7cfb\u7edf\u5185\u90e8\u5c06\u628a\u5b83\u4eec\u89c6\u4e3a\u540c\u4e00\u4e2a\u7528\u6237\uff0c\u4f46\u662f\u5b83\u4eec\u53ef\u4ee5\u6709\u4e0d\u540c\u7684\u53e3\u4ee4\u3001\u4e0d\u540c\u7684\u4e3b\u76ee\u5f55\u4ee5\u53ca\u4e0d\u540c\u7684\u767b\u5f55Shell\u7b49\u3002<\/p>\n

\u901a\u5e38\u7528\u6237\u6807\u8bc6\u53f7\u7684\u53d6\u503c\u8303\u56f4\u662f0\uff5e65 535\u30020\u662f\u8d85\u7ea7\u7528\u6237root\u7684\u6807\u8bc6\u53f7\uff0c1\uff5e99\u7531\u7cfb\u7edf\u4fdd\u7559\uff0c\u4f5c\u4e3a\u7ba1\u7406\u8d26\u53f7\uff0c\u666e\u901a\u7528\u6237\u7684\u6807\u8bc6\u53f7\u4ece100\u5f00\u59cb\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u8fd9\u4e2a\u754c\u9650\u662f500\u3002<\/p>\n

4\uff09\u201c\u7ec4\u6807\u8bc6\u53f7\u201d\u5b57\u6bb5\u8bb0\u5f55\u7684\u662f\u7528\u6237\u6240\u5c5e\u7684\u7528\u6237\u7ec4\u3002<\/strong><\/span><\/div>\n

\u5b83\u5bf9\u5e94\u7740\/etc\/group\u6587\u4ef6\u4e2d\u7684\u4e00\u6761\u8bb0\u5f55\u3002<\/p>\n

5)\u201c\u6ce8\u91ca\u6027\u63cf\u8ff0\u201d\u5b57\u6bb5\u8bb0\u5f55\u7740\u7528\u6237\u7684\u4e00\u4e9b\u4e2a\u4eba\u60c5\u51b5\u3002<\/strong><\/span><\/div>\n

\u4f8b\u5982\u7528\u6237\u7684\u771f\u5b9e\u59d3\u540d\u3001\u7535\u8bdd\u3001\u5730\u5740\u7b49\uff0c\u8fd9\u4e2a\u5b57\u6bb5\u5e76\u6ca1\u6709\u4ec0\u4e48\u5b9e\u9645\u7684\u7528\u9014\u3002\u5728\u4e0d\u540c\u7684Linux \u7cfb\u7edf\u4e2d\uff0c\u8fd9\u4e2a\u5b57\u6bb5\u7684\u683c\u5f0f\u5e76\u6ca1\u6709\u7edf\u4e00\u3002\u5728\u8bb8\u591aLinux\u7cfb\u7edf\u4e2d\uff0c\u8fd9\u4e2a\u5b57\u6bb5\u5b58\u653e\u7684\u662f\u4e00\u6bb5\u4efb\u610f\u7684\u6ce8\u91ca\u6027\u63cf\u8ff0\u6587\u5b57\uff0c\u7528\u505afinger\u547d\u4ee4\u7684\u8f93\u51fa\u3002<\/p>\n

6)\u201c\u4e3b\u76ee\u5f55\u201d\uff0c\u4e5f\u5c31\u662f\u7528\u6237\u7684\u8d77\u59cb\u5de5\u4f5c\u76ee\u5f55\u3002<\/strong><\/span><\/div>\n

\u5b83\u662f\u7528\u6237\u5728\u767b\u5f55\u5230\u7cfb\u7edf\u4e4b\u540e\u6240\u5904\u7684\u76ee\u5f55\u3002\u5728\u5927\u591a\u6570\u7cfb\u7edf\u4e2d\uff0c\u5404\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u90fd\u88ab\u7ec4\u7ec7\u5728\u540c\u4e00\u4e2a\u7279\u5b9a\u7684\u76ee\u5f55\u4e0b\uff0c\u800c\u7528\u6237\u4e3b\u76ee\u5f55\u7684\u540d\u79f0\u5c31\u662f\u8be5\u7528\u6237\u7684\u767b\u5f55\u540d\u3002\u5404\u7528\u6237\u5bf9\u81ea\u5df1\u7684\u4e3b\u76ee\u5f55\u6709\u8bfb\u3001\u5199\u3001\u6267\u884c\uff08\u641c\u7d22\uff09\u6743\u9650\uff0c\u5176\u4ed6\u7528\u6237\u5bf9\u6b64\u76ee\u5f55\u7684\u8bbf\u95ee\u6743\u9650\u5219\u6839\u636e\u5177\u4f53\u60c5\u51b5\u8bbe\u7f6e\u3002<\/p>\n

7)\u7528\u6237\u767b\u5f55\u540e\uff0c\u8981\u542f\u52a8\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u8d1f\u8d23\u5c06\u7528\u6237\u7684\u64cd\u4f5c\u4f20\u7ed9\u5185\u6838\uff0c\u8fd9\u4e2a\u8fdb\u7a0b\u662f\u7528\u6237\u767b\u5f55\u5230\u7cfb\u7edf\u540e\u8fd0\u884c\u7684\u547d\u4ee4\u89e3\u91ca\u5668\u6216\u67d0\u4e2a\u7279\u5b9a\u7684\u7a0b\u5e8f\uff0c\u5373Shell\u3002<\/strong><\/span><\/div>\n

Shell\u662f\u7528\u6237\u4e0eLinux\u7cfb\u7edf\u4e4b\u95f4\u7684\u63a5\u53e3\u3002Linux\u7684Shell\u6709\u8bb8\u591a\u79cd\uff0c\u6bcf\u79cd\u90fd\u6709\u4e0d\u540c\u7684\u7279\u70b9\u3002\u5e38\u7528\u7684\u6709sh(Bourne Shell), csh(C Shell), ksh(Korn Shell), tcsh(TENEX\/TOPS-20 type C Shell), bash(Bourne Again Shell)\u7b49\u3002<\/p>\n

\u7cfb\u7edf\u7ba1\u7406\u5458\u53ef\u4ee5\u6839\u636e\u7cfb\u7edf\u60c5\u51b5\u548c\u7528\u6237\u4e60\u60ef\u4e3a\u7528\u6237\u6307\u5b9a\u67d0\u4e2aShell\u3002\u5982\u679c\u4e0d\u6307\u5b9aShell\uff0c\u90a3\u4e48\u7cfb\u7edf\u4f7f\u7528sh\u4e3a\u9ed8\u8ba4\u7684\u767b\u5f55Shell\uff0c\u5373\u8fd9\u4e2a\u5b57\u6bb5\u7684\u503c\u4e3a\/bin\/sh\u3002<\/p>\n

\u7528\u6237\u7684\u767b\u5f55Shell\u4e5f\u53ef\u4ee5\u6307\u5b9a\u4e3a\u67d0\u4e2a\u7279\u5b9a\u7684\u7a0b\u5e8f\uff08\u6b64\u7a0b\u5e8f\u4e0d\u662f\u4e00\u4e2a\u547d\u4ee4\u89e3\u91ca\u5668\uff09\u3002<\/p>\n

\u5229\u7528\u8fd9\u4e00\u7279\u70b9\uff0c\u6211\u4eec\u53ef\u4ee5\u9650\u5236\u7528\u6237\u53ea\u80fd\u8fd0\u884c\u6307\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5728\u8be5\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u675f\u540e\uff0c\u7528\u6237\u5c31\u81ea\u52a8\u9000\u51fa\u4e86\u7cfb\u7edf\u3002\u6709\u4e9bLinux \u7cfb\u7edf\u8981\u6c42\u53ea\u6709\u90a3\u4e9b\u5728\u7cfb\u7edf\u4e2d\u767b\u8bb0\u4e86\u7684\u7a0b\u5e8f\u624d\u80fd\u51fa\u73b0\u5728\u8fd9\u4e2a\u5b57\u6bb5\u4e2d\u3002<\/p>\n

8)\u7cfb\u7edf\u4e2d\u6709\u4e00\u7c7b\u7528\u6237\u79f0\u4e3a\u4f2a\u7528\u6237\uff08pseudo users\uff09\u3002<\/strong><\/span><\/div>\n

\u8fd9\u4e9b\u7528\u6237\u5728\/etc\/passwd\u6587\u4ef6\u4e2d\u4e5f\u5360\u6709\u4e00\u6761\u8bb0\u5f55\uff0c\u4f46\u662f\u4e0d\u80fd\u767b\u5f55\uff0c\u56e0\u4e3a\u5b83\u4eec\u7684\u767b\u5f55Shell\u4e3a\u7a7a\u3002\u5b83\u4eec\u7684\u5b58\u5728\u4e3b\u8981\u662f\u65b9\u4fbf\u7cfb\u7edf\u7ba1\u7406\uff0c\u6ee1\u8db3\u76f8\u5e94\u7684\u7cfb\u7edf\u8fdb\u7a0b\u5bf9\u6587\u4ef6\u5c5e\u4e3b\u7684\u8981\u6c42\u3002<\/p>\n

\u5e38\u89c1\u7684\u4f2a\u7528\u6237\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n

\u4f2a \u7528 \u6237 \u542b \u4e49 \r\nbin \u62e5\u6709\u53ef\u6267\u884c\u7684\u7528\u6237\u547d\u4ee4\u6587\u4ef6 \r\nsys \u62e5\u6709\u7cfb\u7edf\u6587\u4ef6 \r\nadm \u62e5\u6709\u5e10\u6237\u6587\u4ef6 \r\nuucp UUCP\u4f7f\u7528 \r\nlp lp\u6216lpd\u5b50\u7cfb\u7edf\u4f7f\u7528 \r\nnobody NFS\u4f7f\u7528<\/pre>\n
2.\u62e5\u6709\u5e10\u6237\u6587\u4ef6<\/strong><\/div>\n

1\u3001\u9664\u4e86\u4e0a\u9762\u5217\u51fa\u7684\u4f2a\u7528\u6237\u5916\uff0c\u8fd8\u6709\u8bb8\u591a\u6807\u51c6\u7684\u4f2a\u7528\u6237\uff0c\u4f8b\u5982\uff1aaudit, cron, mail, usenet\u7b49\uff0c\u5b83\u4eec\u4e5f\u90fd\u5404\u81ea\u4e3a\u76f8\u5173\u7684\u8fdb\u7a0b\u548c\u6587\u4ef6\u6240\u9700\u8981\u3002<\/strong><\/p>\n

\u7531\u4e8e\/etc\/passwd\u6587\u4ef6\u662f\u6240\u6709\u7528\u6237\u90fd\u53ef\u8bfb\u7684\uff0c\u5982\u679c\u7528\u6237\u7684\u5bc6\u7801\u592a\u7b80\u5355\u6216\u89c4\u5f8b\u6bd4\u8f83\u660e\u663e\u7684\u8bdd\uff0c\u4e00\u53f0\u666e\u901a\u7684\u8ba1\u7b97\u673a\u5c31\u80fd\u591f\u5f88\u5bb9\u6613\u5730\u5c06\u5b83\u7834\u89e3\uff0c\u56e0\u6b64\u5bf9\u5b89\u5168\u6027\u8981\u6c42\u8f83\u9ad8\u7684Linux\u7cfb\u7edf\u90fd\u628a\u52a0\u5bc6\u540e\u7684\u53e3\u4ee4\u5b57\u5206\u79bb\u51fa\u6765\uff0c\u5355\u72ec\u5b58\u653e\u5728\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u8fd9\u4e2a\u6587\u4ef6\u662f\/etc\/shadow\u6587\u4ef6\u3002 \u6709\u8d85\u7ea7\u7528\u6237\u624d\u62e5\u6709\u8be5\u6587\u4ef6\u8bfb\u6743\u9650\uff0c\u8fd9\u5c31\u4fdd\u8bc1\u4e86\u7528\u6237\u5bc6\u7801\u7684\u5b89\u5168\u6027\u3002<\/p>\n

2\u3001\/etc\/shadow\u4e2d\u7684\u8bb0\u5f55\u884c\u4e0e\/etc\/passwd\u4e2d\u7684\u4e00\u4e00\u5bf9\u5e94\uff0c\u5b83\u7531pwconv\u547d\u4ee4\u6839\u636e\/etc\/passwd\u4e2d\u7684\u6570\u636e\u81ea\u52a8\u4ea7\u751f<\/strong><\/p>\n

\u5b83\u7684\u6587\u4ef6\u683c\u5f0f\u4e0e\/etc\/passwd\u7c7b\u4f3c\uff0c\u7531\u82e5\u5e72\u4e2a\u5b57\u6bb5\u7ec4\u6210\uff0c\u5b57\u6bb5\u4e4b\u95f4\u7528\":\"\u9694\u5f00\u3002\u8fd9\u4e9b\u5b57\u6bb5\u662f\uff1a<\/p>\n

\u767b\u5f55\u540d:\u52a0\u5bc6\u53e3\u4ee4:\u6700\u540e\u4e00\u6b21\u4fee\u6539\u65f6\u95f4:\u6700\u5c0f\u65f6\u95f4\u95f4\u9694:\u6700\u5927\u65f6\u95f4\u95f4\u9694:\u8b66\u544a\u65f6\u95f4:\u4e0d\u6d3b\u52a8\u65f6\u95f4:\u5931\u6548\u65f6\u95f4:\u6807\u5fd7<\/pre>\n

\"\u767b\u5f55\u540d\"\u662f\u4e0e\/etc\/passwd\u6587\u4ef6\u4e2d\u7684\u767b\u5f55\u540d\u76f8\u4e00\u81f4\u7684\u7528\u6237\u8d26\u53f7
\n\"\u53e3\u4ee4\"\u5b57\u6bb5\u5b58\u653e\u7684\u662f\u52a0\u5bc6\u540e\u7684\u7528\u6237\u53e3\u4ee4\u5b57\uff0c\u957f\u5ea6\u4e3a13\u4e2a\u5b57\u7b26\u3002\u5982\u679c\u4e3a\u7a7a\uff0c\u5219\u5bf9\u5e94\u7528\u6237\u6ca1\u6709\u53e3\u4ee4\uff0c\u767b\u5f55\u65f6\u4e0d\u9700\u8981\u53e3\u4ee4\uff1b\u5982\u679c\u542b\u6709\u4e0d\u5c5e\u4e8e\u96c6\u5408 { .\/0-9A-Za-z }\u4e2d\u7684\u5b57\u7b26\uff0c\u5219\u5bf9\u5e94\u7684\u7528\u6237\u4e0d\u80fd\u767b\u5f55\u3002
\n\"\u6700\u540e\u4e00\u6b21\u4fee\u6539\u65f6\u95f4\"\u8868\u793a\u7684\u662f\u4ece\u67d0\u4e2a\u65f6\u523b\u8d77\uff0c\u5230\u7528\u6237\u6700\u540e\u4e00\u6b21\u4fee\u6539\u53e3\u4ee4\u65f6\u7684\u5929\u6570\u3002\u65f6\u95f4\u8d77\u70b9\u5bf9\u4e0d\u540c\u7684\u7cfb\u7edf\u53ef\u80fd\u4e0d\u4e00\u6837\u3002\u4f8b\u5982\u5728SCO Linux \u4e2d\uff0c\u8fd9\u4e2a\u65f6\u95f4\u8d77\u70b9\u662f1970\u5e741\u67081\u65e5\u3002
\n\"\u6700\u5c0f\u65f6\u95f4\u95f4\u9694\"\u6307\u7684\u662f\u4e24\u6b21\u4fee\u6539\u53e3\u4ee4\u4e4b\u95f4\u6240\u9700\u7684\u6700\u5c0f\u5929\u6570\u3002
\n\"\u6700\u5927\u65f6\u95f4\u95f4\u9694\"\u6307\u7684\u662f\u53e3\u4ee4\u4fdd\u6301\u6709\u6548\u7684\u6700\u5927\u5929\u6570\u3002
\n\"\u8b66\u544a\u65f6\u95f4\"\u5b57\u6bb5\u8868\u793a\u7684\u662f\u4ece\u7cfb\u7edf\u5f00\u59cb\u8b66\u544a\u7528\u6237\u5230\u7528\u6237\u5bc6\u7801\u6b63\u5f0f\u5931\u6548\u4e4b\u95f4\u7684\u5929\u6570\u3002
\n\"\u4e0d\u6d3b\u52a8\u65f6\u95f4\"\u8868\u793a\u7684\u662f\u7528\u6237\u6ca1\u6709\u767b\u5f55\u6d3b\u52a8\u4f46\u8d26\u53f7\u4ecd\u80fd\u4fdd\u6301\u6709\u6548\u7684\u6700\u5927\u5929\u6570\u3002
\n\"\u5931\u6548\u65f6\u95f4\"\u5b57\u6bb5\u7ed9\u51fa\u7684\u662f\u4e00\u4e2a\u7edd\u5bf9\u7684\u5929\u6570\uff0c\u5982\u679c\u4f7f\u7528\u4e86\u8fd9\u4e2a\u5b57\u6bb5\uff0c\u90a3\u4e48\u5c31\u7ed9\u51fa\u76f8\u5e94\u8d26\u53f7\u7684\u751f\u5b58\u671f\u3002\u671f\u6ee1\u540e\uff0c\u8be5\u8d26\u53f7\u5c31\u4e0d\u518d\u662f\u4e00\u4e2a\u5408\u6cd5\u7684\u8d26\u53f7\uff0c\u4e5f\u5c31\u4e0d\u80fd\u518d\u7528\u6765\u767b\u5f55\u4e86\u3002
\n\u4e0b\u9762\u662f\/etc\/shadow\u7684\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n

\uff03 cat \/etc\/shadow\r\n\r\nroot:Dnakfw28zf38w:8764:0:168:7:::\r\ndaemon:*::0:0::::\r\nbin:*::0:0::::\r\nsys:*::0:0::::\r\nadm:*::0:0::::\r\nuucp:*::0:0::::\r\nnuucp:*::0:0::::\r\nauth:*::0:0::::\r\ncron:*::0:0::::\r\nlisten:*::0:0::::\r\nlp:*::0:0::::\r\nsam:EkdiSECLWPdSa:9740:0:0::::<\/pre>\n
3\u3001\u7528\u6237\u7ec4\u7684\u6240\u6709\u4fe1\u606f\u90fd\u5b58\u653e\u5728\/etc\/group\u6587\u4ef6\u4e2d\u3002<\/strong><\/div>\n

\u5c06\u7528\u6237\u5206\u7ec4\u662fLinux \u7cfb\u7edf\u4e2d\u5bf9\u7528\u6237\u8fdb\u884c\u7ba1\u7406\u53ca\u63a7\u5236\u8bbf\u95ee\u6743\u9650\u7684\u4e00\u79cd\u624b\u6bb5\u3002<\/p>\n

\u6bcf\u4e2a\u7528\u6237\u90fd\u5c5e\u4e8e\u67d0\u4e2a\u7528\u6237\u7ec4\uff1b\u4e00\u4e2a\u7ec4\u4e2d\u53ef\u4ee5\u6709\u591a\u4e2a\u7528\u6237\uff0c\u4e00\u4e2a\u7528\u6237\u4e5f\u53ef\u4ee5\u5c5e\u4e8e\u4e0d\u540c\u7684\u7ec4\u3002<\/p>\n

\u5f53\u4e00\u4e2a\u7528\u6237\u540c\u65f6\u662f\u591a\u4e2a\u7ec4\u4e2d\u7684\u6210\u5458\u65f6\uff0c\u5728\/etc\/passwd\u6587\u4ef6\u4e2d\u8bb0\u5f55\u7684\u662f\u7528\u6237\u6240\u5c5e\u7684\u4e3b\u7ec4\uff0c\u4e5f\u5c31\u662f\u767b\u5f55\u65f6\u6240\u5c5e\u7684\u9ed8\u8ba4\u7ec4\uff0c\u800c\u5176\u4ed6\u7ec4\u79f0\u4e3a\u9644\u52a0\u7ec4\u3002<\/p>\n

\u7528\u6237\u8981\u8bbf\u95ee\u5c5e\u4e8e\u9644\u52a0\u7ec4\u7684\u6587\u4ef6\u65f6\uff0c\u5fc5\u987b\u9996\u5148\u4f7f\u7528newgrp\u547d\u4ee4\u4f7f\u81ea\u5df1\u6210\u4e3a\u6240\u8981\u8bbf\u95ee\u7684\u7ec4\u4e2d\u7684\u6210\u5458\u3002<\/p>\n

\u7528\u6237\u7ec4\u7684\u6240\u6709\u4fe1\u606f\u90fd\u5b58\u653e\u5728\/etc\/group\u6587\u4ef6\u4e2d\u3002\u6b64\u6587\u4ef6\u7684\u683c\u5f0f\u4e5f\u7c7b\u4f3c\u4e8e\/etc\/passwd\u6587\u4ef6\uff0c\u7531\u5192\u53f7(:)\u9694\u5f00\u82e5\u5e72\u4e2a\u5b57\u6bb5\uff0c\u8fd9\u4e9b\u5b57\u6bb5\u6709\uff1a<\/p>\n

\u7ec4\u540d:\u53e3\u4ee4:\u7ec4\u6807\u8bc6\u53f7:\u7ec4\u5185\u7528\u6237\u5217\u8868<\/pre>\n

\"\u7ec4\u540d\"\u662f\u7528\u6237\u7ec4\u7684\u540d\u79f0\uff0c\u7531\u5b57\u6bcd\u6216\u6570\u5b57\u6784\u6210\u3002\u4e0e\/etc\/passwd\u4e2d\u7684\u767b\u5f55\u540d\u4e00\u6837\uff0c\u7ec4\u540d\u4e0d\u5e94\u91cd\u590d\u3002
\n\"\u53e3\u4ee4\"\u5b57\u6bb5\u5b58\u653e\u7684\u662f\u7528\u6237\u7ec4\u52a0\u5bc6\u540e\u7684\u53e3\u4ee4\u5b57\u3002\u4e00\u822cLinux \u7cfb\u7edf\u7684\u7528\u6237\u7ec4\u90fd\u6ca1\u6709\u53e3\u4ee4\uff0c\u5373\u8fd9\u4e2a\u5b57\u6bb5\u4e00\u822c\u4e3a\u7a7a\uff0c\u6216\u8005\u662f*\u3002
\n\"\u7ec4\u6807\u8bc6\u53f7\"\u4e0e\u7528\u6237\u6807\u8bc6\u53f7\u7c7b\u4f3c\uff0c\u4e5f\u662f\u4e00\u4e2a\u6574\u6570\uff0c\u88ab\u7cfb\u7edf\u5185\u90e8\u7528\u6765\u6807\u8bc6\u7ec4\u3002
\n\"\u7ec4\u5185\u7528\u6237\u5217\u8868\"\u662f\u5c5e\u4e8e\u8fd9\u4e2a\u7ec4\u7684\u6240\u6709\u7528\u6237\u7684\u5217\u8868\/b]\uff0c\u4e0d\u540c\u7528\u6237\u4e4b\u95f4\u7528\u9017\u53f7(,)\u5206\u9694\u3002\u8fd9\u4e2a\u7528\u6237\u7ec4\u53ef\u80fd\u662f\u7528\u6237\u7684\u4e3b\u7ec4\uff0c\u4e5f\u53ef\u80fd\u662f\u9644\u52a0\u7ec4\u3002
\n\/etc\/group\u6587\u4ef6\u7684\u4e00\u4e2a\u4f8b\u5b50\u5982\u4e0b\uff1a<\/p>\n

root::0:root\r\nbin::2:root,bin\r\nsys::3:root,uucp\r\nadm::4:root,adm\r\ndaemon::5:root,daemon\r\nlp::7:root,lp\r\nusers::20:root,sam<\/pre>\n","protected":false},"excerpt":{"rendered":"

Linux\u7cfb\u7edf\u4e2d\u7684\u6bcf\u4e2a\u7528\u6237\u90fd\u5728\/etc\/passwd\u6587\u4ef6\u4e2d\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684\u8bb0\u5f55\u884c\uff0c\u5b83\u8bb0\u5f55\u4e86\u8fd9\u4e2a\u7528\u6237\u7684\u4e00\u4e9b\u57fa\u672c\u5c5e\u6027\u3002 […]<\/p>\n","protected":false},"author":1481,"featured_media":160253,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-160128","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/160128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=160128"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/160128\/revisions"}],"predecessor-version":[{"id":160256,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/160128\/revisions\/160256"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/160253"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=160128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=160128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=160128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}