{"id":275357,"date":"2023-06-20T04:02:05","date_gmt":"2023-06-19T20:02:05","guid":{"rendered":"https:\/\/lrxjmw.cn\/ldxtzydzyzyx.html"},"modified":"2023-06-20T04:02:05","modified_gmt":"2023-06-19T20:02:05","slug":"ldxtzydzyzyx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ldxtzydzyzyx.html","title":{"rendered":"Linux\u5bf9\u7cfb\u7edf\u8d44\u6e90\u7684\u8d44\u6e90\u505a\u4e00\u4e9b\u7b80\u5355\u7edf\u8ba1\u547d\u4ee4\u663e\u793a"},"content":{"rendered":"

\u67e5\u770b\u7cfb\u7edf<\/a>\u4e2d\u7684\u6240\u6709\u7528\u6237\uff1a<\/p>\n

linux \u67e5\u770bcrontab\u5c5e\u4e8e\u54ea\u4e2a\u7528\u6237_linux \u67e5\u770b\u7528\u6237\u7ec4_linux\u67e5\u770bftp\u7528\u6237<\/p>\n

cat\/etc\/passwd|cut-f1-d:<\/p>\n

\u6ce8\uff1a|\u662f\u7ba1\u7ebf\uff0c\u628acat\u7684\u8f93\u51fa\u4f20\u7ed9cut\u5904\u7406\uff1b\u65c1\u8fb9\u7684cut\u53d6\u51fa\u6bcf\u4e00\u884c\u7684\u4ee5\uff1a\u5206\u5272\u7684\u7b2c\u4e00\u680f<\/p>\n

passwd\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n

linux \u67e5\u770bcrontab\u5c5e\u4e8e\u54ea\u4e2a\u7528\u6237_linux\u67e5\u770bftp\u7528\u6237_linux \u67e5\u770b\u7528\u6237\u7ec4<\/p>\n

\/etc\/passwd\u6587\u4ef6\u50a8\u5b58\u7684\u662f\u7528\u6237\u4fe1\u606f.\u7531\u516d\u4e2a\u5206\u53f7\u7ec4\u6210\u76847\u4e2a\u4fe1\u606f,\u5206\u522b\u662f:<\/p>\n

\n

\u7528\u6237\u540d \uff08magesh\uff09\uff1a \u5df2\u521b\u5efa\u7528\u6237\u7684\u7528\u6237\u540d\uff0c\u5b57\u7b26\u957f\u5ea6 1 \u4e2a\u5230 12 \u4e2a\u5b57\u7b26\u3002\n\u5bc6\u7801\uff08x\uff09\uff1a\u4ee3\u8868\u52a0\u5bc6\u5bc6\u7801\u4fdd\u5b58\u5728 `\/etc\/shadow \u6587\u4ef6\u4e2d\u3002\n\u7528\u6237 ID\uff08506\uff09\uff1a\u4ee3\u8868\u7528\u6237\u7684 ID \u53f7\uff0c\u6bcf\u4e2a\u7528\u6237\u90fd\u8981\u6709\u4e00\u4e2a\u552f\u4e00\u7684 ID \u3002UID \u53f7\u4e3a 0 \u7684\u662f\u4e3a root \u7528\u6237\u4fdd\u7559\u7684\uff0cUID \u53f7 1 \u5230 99 \u662f\u4e3a\u7cfb\u7edf\u7528\u6237\u4fdd\u7559\u7684\uff0cUID \u53f7 100-999 \u662f\u4e3a\u7cfb\u7edf\u8d26\u6237\u548c\u7fa4\u7ec4\u4fdd\u7559\u7684\u3002\n\u7fa4\u7ec4 ID \uff08507\uff09\uff1a\u4ee3\u8868\u7fa4\u7ec4\u7684 ID \u53f7\uff0c\u6bcf\u4e2a\u7fa4\u7ec4\u90fd\u8981\u6709\u4e00\u4e2a\u552f\u4e00\u7684 GID \uff0c\u4fdd\u5b58\u5728 \/etc\/group\u6587\u4ef6\u4e2d\u3002\n\u7528\u6237\u4fe1\u606f\uff082g Admin - Magesh M\uff09\uff1a\u4ee3\u8868\u63cf\u8ff0\u5b57\u6bb5\uff0c\u53ef\u4ee5\u7528\u6765\u63cf\u8ff0\u7528\u6237\u7684\u4fe1\u606f\uff08LCTT \u8bd1\u6ce8\uff1a\u6b64\u5904\u539f\u6587\u7591\u6709\u8bef\uff09\u3002\n\u5bb6\u76ee\u5f55\uff08\/home\/mageshm\uff09\uff1a\u4ee3\u8868\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u3002\nShell\uff08\/bin\/bash\uff09\uff1a\u4ee3\u8868\u7528\u6237\u4f7f\u7528\u7684 shell \u7c7b\u578b\u3002
<\/span><\/code><\/pre>\n<\/p>\n

\n

\u67e5\u770bLinux\u7cfb\u7edf\u6240\u6709\u7528\u6237\u7684\u53ca\u5176\u7528\u6237\u540d\u8fd8\u53ef\u4ee5\u7528\u6700\u7b80\u5355\u7684\u4e00\u4e2a\u547d\u4ee4\uff1als \/home<\/strong><\/span>
\u76f4\u63a5\u67e5\u770bhome\u76ee\u5f55\u4e0b\u6709\u591a\u5c11\u76ee\u5f55\u5c31\u53ef\u4ee5\u77e5\u9053\u5f53\u524d\u7cfb\u7edf\u4e0b\u7684\u7528\u6237\u540d\uff0c\u8981\u8be6\u7ec6\u4e00\u4e9b\u8fd8\u53ef\u4ee5\u7528:ll \/home
\u5f53\u7136\uff0c\u4e00\u4e9b\u521b\u5efa\u65f6\u7279\u610f\u4e0d\u521b\u5efahome\u76ee\u5f55\u7684\u53e6\u5f53\u522b\u8bba<\/strong><\/span><\/code><\/pre>\n<\/p>\n

\u67e5\u770b\u7528\u6237\u4fe1\u606f<\/p>\n

who\u67e5\u770b\u5f53\u524d\u767b\u5165\u7528\u6237\u7684\u5e10\u6237\u540d<\/p>\n

who\u663e\u793a\u7684\u4fe1\u606f\u89e3\u91ca\uff1a<\/p>\n

\u7b2c\u4e00\u5217\u662f\u767b\u9646\u7528\u6237\u540d\u7b2c\u4e8c\u5217\u662f\u767b\u9646\u7ec8\u7aef\uff0c\u767b\u9646\u7ec8\u7aef\u4e2d\u7684tty\u8868\u793a\u672c\u5730\u767b\u9646\uff0c\u5373\u5728\u771f\u5b9e\u7684\u673a\u5668\u4e0a\u767b\u9646\uff0c<\/p>\n

pts\u8868\u793a\u8fdc\u7a0b\u7ec8\u7aef\uff0c\u5018\u82e5\u6709\u591a\u4e2a\u8fdc\u7a0b\u7ec8\u7aeflinux\u5173\u673a\u547d\u4ee4\uff0c\u4e3a\u4e86\u533a\u522b\u5982\u4f55\u5b89\u88c5LINUX\uff0c\u4f1a\u52a0\/0,1,2\u4e4b\u7c7b\u7684,\u5982pts\/0\u3001pts\/1\u3001pts\/2....<\/p>\n

\u6700\u540e\u8fd8\u6709\u767b\u9646\u65f6\u95f4\uff0c\u767b\u9646\u7684\u4e3b\u673a\u7684IP\u5730\u5740<\/p>\n

ww\u547d\u4ee4<\/a>\u663e\u793a\u7684\u4fe1\u606f\u6bd4who\u547d\u4ee4\u663e\u793a\u7684\u4fe1\u606f\u6108\u53d1\u8be6\u5c3d\u4e00\u70b9linux \u67e5\u770b\u7528\u6237\u7ec4<\/strong>\uff0c\u4ed6\u4f1a\u5bf9\u7cfb\u7edf\u7684\u8d44\u6e90\u505a\u4e00\u4e9b\u7b80\u5355\u7684\u7edf\u8ba1linux \u67e5\u770b\u7528\u6237\u7ec4<\/strong>\uff0c\u5982\u4e00\u5171\u6709\u591a\u5c11\u4e2a\u767b\u9646\u7528\u6237\uff0c\u6b64Linux<\/a>\u4ece\u5f00\u59cb\u5230\u5982\u4eca\u4e00\u5171\u8fd0\u884c\u4e86\u591a\u4e45\u7b49\u3002<\/p>\n

whoami\u67e5\u770b\u5f53\u524d\u767b\u5165\u7528\u6237\u7684\u5e10\u6237\u540d<\/p>\n

id\u67e5\u770b\u7528\u6237UID\u548cGID\u4fe1\u606f<\/p>\n

\u7528\u6237\u7ec4\u4fe1\u606f<\/p>\n

\u7528\u6237\u7ec4\u5b58\u5728\u7684\u4fe1\u606f\u4f4d\u7f6e\uff1a\/etc\/group<\/p>\n

\u4e0b\u8fb9\u662f\u4e00\u6761\/etc\/group\u6587\u4ef6\u91cc\u7684\u8bb0\u5f55\uff1a<\/p>\n

lianxi:x:1008:test,kaifa,jingli,zongjian<\/p>\n

\/etc\/group\u6587\u4ef6\u7684\u6bcf\u6761\u8bb0\u5f55\u5206\u56db\u6bb5\uff0c\u7528\u9017\u53f7\u9694\u5f00<\/p>\n

\u7b2c\u4e00\u6570\u7ec4\uff1a\u7528\u6237\u7ec4\u540d\u79f0\uff1b<\/p>\n

\u7b2c\u4e8c\u6570\u7ec4\uff1a\u7528\u6237\u7ec4\u5bc6\u7801\uff1b<\/p>\n

\u7b2c\u4e09\u6570\u7ec4\uff1a\u7528\u6237\u7ec4ID\uff0c\u4e5f\u53ebGID<\/p>\n

\u7b2c\u56db\u6570\u7ec4\uff1a\u7528\u6237\u5217\u8868\uff0c\u6bcf\u4f4d\u7528\u6237\u4e4b\u95f4\u7528,\u53f7\u5206\u5272\uff1b\u672c\u6570\u7ec4\u53ef\u4ee5\u4e3a\u7a7a\uff1b\u5047\u5982\u6570\u7ec4\u4e3a\u7a7a\u8868\u793a\u7528\u6237\u7ec4\u4e3aGID\u7684\u7528\u6237\u540d\uff1b<\/p>\n","protected":false},"excerpt":{"rendered":"

\u67e5\u770b\u7cfb\u7edf\u4e2d\u7684\u6240\u6709\u7528\u6237\uff1a\u6587\u4ef6\u5b58\u653e\u7684\u662f\u7528\u6237\u4fe1\u606f.\u67e5\u770b\u7528\u6237\u4fe1\u606f\u67e5\u770b\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684\u8d26\u6237\u540dww\u547d\u4ee4\u663e\u793a\u7684\u4fe1\u606f\u6bd4who\u547d\u4ee4\u663e\u793a\u7684\u4fe1\u606f\u66f4\u52a0\u8be6\u7ec6\u4e00\u70b9\uff0c\u4ed6\u4f1a\u5bf9\u7cfb\u7edf\u7684\u8d44\u6e90\u505a\u4e00\u4e9b\u7b80\u5355\u7684\u7edf\u8ba1\uff0c\u5982\u4e00\u5171\u6709\u591a\u5c11\u4e2a\u767b\u5f55\u7528\u6237\uff0c\u6b64Linux\u4ece\u5f00\u59cb\u5230\u73b0\u5728\u4e00\u5171\u8fd0\u884c\u4e86\u591a\u4e45\u7b49\u3002\u67e5\u770b\u5f53\u524d\u767b\u5f55\u7528\u6237\u7684\u8d26\u6237\u540d\u67e5\u770b\u7528\u6237UID\u548cGID\u4fe1\u606f\u7528\u6237\u7ec4\u4fe1\u606f\u7528\u6237\u7ec4\u5b58\u5728\u7684\u4fe1\u606f\u4f4d\u7f6e\uff1a\/etc\/group\u7b2c\u4e8c\u5b57\u6bb5\uff1a\u7528\u6237\u7ec4\u5bc6\u7801\uff1b\u7b2c\u4e09\u5b57\u6bb5\uff1a\u7528\u6237\u7ec4ID\uff0c\u4e5f\u53ebGID<\/p>\n","protected":false},"author":1,"featured_media":275358,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-275357","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/275357","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=275357"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/275357\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/275358"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=275357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=275357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=275357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}