{"id":295109,"date":"2024-12-21T20:08:15","date_gmt":"2024-12-21T12:08:15","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxsjccjyhbzd.html"},"modified":"2024-12-21T20:08:15","modified_gmt":"2024-12-21T12:08:15","slug":"lxsjccjyhbzd","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxsjccjyhbzd.html","title":{"rendered":"Linux\u65b0\u624b\u6559\u7a0b\uff1a\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u4e3b\u76ee\u5f55\u7684\u8be6\u7ec6\u6b65\u9aa4"},"content":{"rendered":"

Linux<\/a>\u83dc\u9e1f\u5fc5\u5907\u6280\u80fd\uff1a\u600e\u6837\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u4e3b\u76ee\u5f55<\/p>\n

\u5047\u5982\u4f60\u662fLinux\u83dc\u9e1f\uff0c\u5176\u5b9e\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u4e3b\u76ee\u5f55\u53ef\u80fd\u4f1a\u8ba9\u4f60\u500d\u611f\u6709\u4e9b\u56f0\u96be\uff0c\u4f46\u8fd9\u662f\u5fc5\u9700\u8981\u628a\u63e1\u7684\u77e5\u8bc6\u4e4b\u4e00\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u600e\u6837\u5728Linux\u7cfb\u7edf\u4e2d\u521b\u5efa\u65b0\u7528\u6237\u5e76\u4e3a\u5176\u5206\u914d\u4e00\u4e2a\u7279\u5b9a\u7684\u4e3b\u76ee\u5f55\u3002<\/p>\n

1.\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684\u7528\u6237\u540d<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6bcf\u4f4d\u7528\u6237\u90fd\u5fc5\u987b\u6709\u4e00\u4e2a\u60df\u4e00\u7684\u7528\u6237\u540d\u3002\u4e3a\u4e86\u4e0e\u5176\u4ed6\u7528\u6237\u533a\u5206\u5f00\u6765\u5e76\u4fbf\u6377\u7ba1\u7406\uff0c\u6211\u4eec\u987b\u8981\u7ed9\u7528\u6237\u5206\u914d\u4e00\u4e2a\u5408\u9002\u7684\u7528\u6237\u540d\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u7528\u6237\u540d\u5e94\u5f53\u77ed\u5c0f\u7cbe\u608d\uff0c\u4fbf\u4e8e\u8bb0\u5fc6\uff0c\u800c\u4e14\u8fd8\u80fd\u8fa8\u8bc6\u51fa\u7528\u6237\u7684\u8eab\u5206\u3002<\/p>\n

2.\u5728\u547d\u4ee4<\/a>\u884c\u4e2d\u521b\u5efa\u65b0\u7528\u6237<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u521b\u5efa\u65b0\u7528\u6237\u65f6\u987b\u8981\u4f7f\u7528\u547d\u4ee4\u884c\u754c\u9762\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\u201c`<\/p>\n

linux\u7ed9\u76ee\u5f55\u8d4b\u7528\u6237\u6743\u9650_linux ftp \u7528\u6237\u6307\u5b9a\u76ee\u5f55_linux\u7ed9\u7528\u6237\u6307\u5b9a\u76ee\u5f55<\/p>\n

$sudoaddusernewuser<\/p>\n

\u201c`<\/p>\n

\u5176\u4e2d\u7ea2\u65d7linux\u4e0b\u8f7d\uff0c\u201cnewuser\u201d\u662f\u4f60\u6240\u987b\u8981\u521b\u5efa\u7684\u65b0\u7528\u6237\u7684\u7528\u6237\u540d\u3002\u8f93\u5165\u8be5\u547d\u4ee4\u540e\uff0c\u7cfb\u7edf\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u4e00\u4e9b\u76f8\u5173\u4fe1\u606f\uff0c\u6bd4\u5982\u5bc6\u7801\u3001\u5168\u540d\u548c\u5176\u4ed6\u8be6\u5c3d\u4fe1\u606f\u3002\u7cfb\u7edf\u9ed8\u8ba4\u4e3a\u65b0\u7528\u6237\u521b\u5efa\u4e00\u4e2a\u4e3b\u76ee\u5f55\uff0c\u5047\u5982\u4f60\u987b\u8981\u4fee\u6539\u4e3b\u76ee\u5f55\u8def\u5f84\uff0c\u8fd9\u4e48\u8bf7\u9605\u8bfb\u4e0b\u8fb9\u7684\u6b65\u9aa4\u3002<\/p>\n

3.\u6307\u5b9a\u4e3b\u76ee\u5f55\u8def\u5f84<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u88ab\u79f0\u4e3a\u201c\u5bb6\u76ee\u5f55\u201dlinux ftp \u7528\u6237\u6307\u5b9a\u76ee\u5f55<\/strong>\uff0c\u4e00\u822c\u50a8\u5b58\u7740\u7528\u6237\u7684\u4e2a\u4eba\u6587\u4ef6\u548c\u8bbe\u7f6e\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0blinux\u89c6\u9891\u6559\u7a0b\uff0c\u7cfb\u7edf\u4f1a\u4f9d\u7167\u6240\u521b\u5efa\u7528\u6237\u7684\u7528\u6237\u540d\uff0c\u5728\u201c\/home\u201d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540c\u540d\u7684\u6587\u4ef6\u5939\u4f5c\u4e3a\u65b0\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u3002\u4f46\u6709\u65f6\u56e0\u4e3a\u7cfb\u7edf\u6784\u67b6\u7b49\u8bf1\u56e0\uff0c\u6211\u4eec\u987b\u8981\u5c06\u4e3b\u76ee\u5f55\u8def\u5f84\u4fee\u6539\u4e3a\u5176\u4ed6\u8def\u5f84\u3002<\/p>\n

\u8981\u4fee\u6539\u65b0\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u8def\u5f84\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\u201c`<\/p>\n

$sudousermod-d\/new_home_dirusername<\/p>\n

\u201c`<\/p>\n

\u5176\u4e2d\uff0c\u201c\/new_home_dir\u201d\u662f\u4f60\u60f3\u8981\u6307\u5b9a\u7684\u65b0\u4e3b\u76ee\u5f55\u8def\u5f84\uff0c\u800c\u201cusername\u201d\u5219\u4e3a\u4f60\u6240\u521b\u5efa\u7684\u65b0\u7528\u6237\u7684\u7528\u6237\u540d\u3002<\/p>\n

4.\u786e\u8ba4\u65b0\u7528\u6237\u4fe1\u606f<\/p>\n

\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e\uff0c\u6211\u4eec\u987b\u8981\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u786e\u8ba4\u65b0\u7528\u6237\u7684\u7528\u6237\u540d\u548c\u4e3b\u76ee\u5f55\u662f\u5426\u5df2\u6210\u529f\u521b\u5efa\u548c\u6307\u5b9a\uff1a<\/p>\n

\u201c`<\/p>\n

$cat\/etc\/passwd|grepnewuser<\/p>\n

\u201c`<\/p>\n

linux\u7ed9\u7528\u6237\u6307\u5b9a\u76ee\u5f55_linux ftp \u7528\u6237\u6307\u5b9a\u76ee\u5f55_linux\u7ed9\u76ee\u5f55\u8d4b\u7528\u6237\u6743\u9650<\/p>\n

\u5176\u4e2dlinux ftp \u7528\u6237\u6307\u5b9a\u76ee\u5f55<\/strong>\uff0c\u201cnewuser\u201d\u4e3a\u4f60\u6240\u521b\u5efa\u7684\u65b0\u7528\u6237\u7684\u7528\u6237\u540d\u3002\u5047\u5982\u8fd4\u56de\u503c\u5305\u542b\u4e86\u65b0\u7528\u6237\u540d\u548c\u4e3b\u76ee\u5f55\u8def\u5f84\uff0c\u8fd9\u4e48\u8bf4\u660e\u65b0\u7528\u6237\u7684\u4fe1\u606f\u65e9\u5df2\u6210\u529f\u5730\u88ab\u50a8\u5b58\u5728\u7cfb\u7edf\u4e2d\u3002<\/p>\n

\u8fd9\u5c31\u662f\u521b\u5efaLinux\u65b0\u7528\u6237\u5e76\u6307\u5b9a\u4e3b\u76ee\u5f55\u7684\u7b80\u6613\u6559\u7a0b\u4e86\u3002\u5e0c\u671b\u672c\u6587\u624d\u80fd\u5e2e\u52a9\u5230\u521d\u5b66\u8005\u4eec\u6108\u53d1\u4e86\u89e3Linux\u7684\u7528\u6237\u7ba1\u7406\u673a\u5236\u3002\u5176\u5b9e\u4e0d\u4ec5\u8fd9\u4e9b\u547d\u4ee4\u884c\u5f62\u5f0f\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528LinuxGraphicalUserInterface(GUI)\u6765\u5b9e\u73b0\u56fe\u5f62\u5316\u8bbe\u7f6e\uff0c\u5047\u5982\u4f60\u5bf9\u6b64\u611f\u5174\u8da3\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u76f8\u5173\u6587\u7ae0\u4e86\u89e3\u66f4\u591a\u3002<\/p>\n

\u76f8\u5173\u95ee\u9898\u62d3\u5c55\u9605\u8bfb\uff1a<\/p>\n

\u5728linux\u4e0a\u7528root\u521b\u5efa\u4e00\u4e2a\u7528\u6237\uff0c\u5e76\u5e0c\u671b\u8fd9\u4e2a\u7528\u6237\u5bf9\u6211\u6307\u5b9a\u7684\u51e0\u4e2a\u76ee\u5f55\u6ca1\u6709\u5199\u7684\u6743\u9650\u3002\u8be5\u600e\u6837\u5b9e\u73b0\uff1f<\/p>\n

\u9ed8\u8ba4\u5bf9\u5176\u4ed6\u7528\u6237\u521b\u5efa\u7684\u76ee\u5f55\u5c31\u6ca1\u7528\u5199\u7684\u6743\u9650<\/p>\n

linux\u76ee\u5f55\u6743\u9650rwxrwxrwx\uff0cr\uff1a\u8bfbw\uff1a\u5199x\uff1a\u6b65\u5165\u76ee\u5f55\u7684\u6743\u9650<\/p>\n

\u4e4b\u4e00\u4e2arwx\u662f\u76ee\u5f55\u62e5\u6709\u8005\u5bf9\u8be5\u76ee\u5f55\u7684\u6743\u9650\uff0c\u7b2c\u4e8c\u4e2a\u5e76\u88e4\u4e3e\u662f\u76ee\u5f55\u7528\u6237\u7edd\u78a7\u8005\u6240\u5728\u7528\u6237\u7ec4\u5bf9\u8be5\u76ee\u5f55\u7684\u6743\u9650\uff0c\u7b2c\u4e09\u4e2a\u662f\u5176\u4ed6\u7528\u6237\u5bf9\u8be5\u76ee\u5f55\u7684\u6743\u9650\u3002<\/p>\n

linux ftp \u7528\u6237\u6307\u5b9a\u76ee\u5f55_linux\u7ed9\u7528\u6237\u6307\u5b9a\u76ee\u5f55_linux\u7ed9\u76ee\u5f55\u8d4b\u7528\u6237\u6743\u9650<\/p>\n

\u8981\u8fbe\u6210\u4f60\u9700\u6c42\uff0c\u53ea\u8981\u4e0d\u7ed9w\u6743\u9650\u7ed9\u90a3\u7528\u7eaf\u65e6\u6237\u5373\u53ef\u3002<\/p>\n

\u5047\u5b9a\uff0croot\u7528\u6237\u6784\u5efa\u4e86\u666e\u901a\u7528\u6237zs\uff0c\u800c\u4e14\u8981\u6307\u5b9a\u7528\u6237zs\u5bf9\u6839\u4e0b\u7684\/opt\uff0c\/tools\u76ee\u5f55\u6ca1\u6709\u5199\u5165\u6743\u9650\uff0c\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n

chmod755\/opt\/tools<\/p>\n

\u8fd9\u6837\u7684\u8bdd\uff0czs\u5bf9\u8fd9\u4e24\u4e2a\u76ee\u5f55\u53ea\u6709\u8bbf\u95ee\u6743\u9650\u548c\u5217\u4e3e\u78b0\u5982\u889c\u6587\u4ef6\u53ca\u6587\u4ef6\u5939\u5217\u8868\u6743\u9650\uff08\u4e5f\u5c31\u662f\u8bf4\uff0c\u53ef\u4ee5\u4f7f\u7528cd\u547d\u4ee4\u6b65\u5165\uff0c\u53ef\u4ee5\u4f7f\u7528ls\u547d\u4ee4\u67e5\u770b\u3002\u505a\u4efb\u4f55\u5199\u64cd\u6a61\u7ea4\u4f5c\uff0c\u4f8b\u5982touch\uff0cmkdir\u7b49\uff0c\u90fd\u63d0\u793a\u6ca1\u6709\u6743\u9650\u3002\uff09<\/p>\n

\u6ce8\uff1a\u5047\u5982\u4f60\u6307\u5b9a\u7684\u76ee\u5f55\u4e0b\u8fb9\u6709\u5b50\u76ee\u5f55\u548c\u6587\u4ef6\uff0c\u4f46\u662f\u4f60\u60f3\u8981\u4f60\u8bbe\u7f6e\u7684\u6743\u9650\u4ecd\u7136\u5ef6\u540e\u4e0b\u53bb\uff0c\u8fd9\u4e48\u5c31\u8981\u52a0\u4e0a-R\u9009\u9879\u3002\u547d\u4ee4\u4e3a\uff1achmod-R\/opt\/tools\u3002\u5018\u82e5\u4e0d\u9700\u7b11\u6fc0\u8981\uff0c\u8fd9\u4e48\u4e0a\u9762\u7684\u547d\u4ee4\u5c31\u53ef\u4ee5\u4e86<\/p>\n

\u4f8b\u5982\u6211\u521b\u5efa\u4e2auser1\u8ba9\u8fd9\u6c6a\u5c81\u4e2auser1\u8bbf\u95ee\u4e0d\u4e86bin\u76ee\u5f55\u548cboot\u76ee\u614e\u8f6e\u5f55<\/p>\n

\u53ea\u987b\u8981\u7528root\u7528\u6237\u505a\u4e00\u4e0b\u5bbd\u9675\u4fe1\u64cd\u4f5c<\/p>\n

chmod770\/bin<\/p>\n

chmod770\/boot<\/p>\n

linux ftp \u7528\u6237\u6307\u5b9a\u76ee\u5f55_linux\u7ed9\u7528\u6237\u6307\u5b9a\u76ee\u5f55_linux\u7ed9\u76ee\u5f55\u8d4b\u7528\u6237\u6743\u9650<\/p>\n

\u5047\u5982\u4f60\u60f3\u8ba9user1\u80fd\u8bbf\u95eebin\u90a3\u5c31chmod777\/bin\u5c31\u53ef\u4ee5\u4e86<\/p>\n

\u4f60\u628a\u4f60\u7684\u51e0\u4e2a\u76ee\u5f55\u6743\u9650\u66f4\u6539\u4e0b\u5c31\u597d\u4e86\u554a\u3002<\/p>\n

chmod\u547d\u4ee4\u3002<\/p>\n

linux\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u76ee\u5f55\u7684\u4ecb\u7ecd\u5c31\u804a\u5230\u8fd9\u513f\u5427\uff0c\u8c22\u8c22\u4f60\u82b1\u65f6\u95f4\u9605\u8bfb\u672c\u7ad9\u5185\u5bb9\uff0c\u66f4\u591a\u5173\u4e8elinux\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u76ee\u5f55,Linux\u83dc\u9e1f\u600e\u6837\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u4e3b\u76ee\u5f55,\u5728linux\u4e0a\u7528root\u521b\u5efa\u4e00\u4e2a\u7528\u6237\uff0c\u5e76\u5e0c\u671b\u8fd9\u4e2a\u7528\u6237\u5bf9\u6211\u6307\u5b9a\u7684\u51e0\u4e2a\u76ee\u5f55\u6ca1\u6709\u5199\u7684\u6743\u9650\u3002\u8be5\u600e\u6837\u5b9e\u73b0\uff1f\u7684\u4fe1\u606f\u522b\u5fd8\u4e86\u5728\u672c\u7ad9\u8fdb\u884c\u67e5\u627e\u5594\u3002<\/p>\n

\u53f0\u6e7e\u670d\u52a1\u5668\u9996\u9009\u540e\u6d6a\u4e91\uff0c2H2G\u9996\u670810\u5143\u5f00\u901a\u3002<\/p>\n

\u540e\u6d6a\u4e91\uff08\uff09\u63d0\u4f9b\u7b80\u5355\u597d\u7528\uff0c\u4ef7\u94b1\u539a\u9053\u7684\u65b0\u52a0\u5761\/\u9a6c\u6765\u897f\u4e9a\u4e91\u670d\u52a1\u5668\u548c\u72ec\u7acb\u670d\u52a1\u5668\u3002IDC+ISP+ICP\u8d44\u8d28\u3002ARIN\u548cAPNIC\u4f1a\u5458\u3002\u6210\u719f\u6280\u672f\u56e2\u961f15\u5e74\u884c\u4e1a\u7ecf\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Linux\u65b0\u624b\u5fc5\u5907\u6280\u80fd\uff1a\u5982\u4f55\u521b\u5efa\u7528\u6237\u5e76\u6307\u5b9a\u4e3b\u76ee\u5f55\u8fd9\u5c31\u662f\u521b\u5efaLinux\u65b0\u7528\u6237\u5e76\u6307\u5b9a\u4e3b\u76ee\u5f55\u7684\u7b80\u6613\u6559\u7a0b\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":295110,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[5084,5083,5086,5085,5082],"class_list":["post-295109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-xyhzml","tag-ggzmllj","tag-yhqxsz","tag-qrxyhxx","tag-xtmrzml"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295109","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=295109"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/295109\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/295110"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=295109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=295109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=295109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}