\u6536\u5230\u4e86\u5ba2\u6236\u7684\u8981\u6c42\uff0c\u5e0c\u671b\u5728\u4ed6\u6240\u79df\u7528\u7684\u7368\u7acb\u4e3b\u6a5f\u4e0b\u7684\u4e8c\u500baccount\uff0cA\u548cB\uff0c\u6709\u5171\u7528\u7684\u8cc7\u6599\u593e\u3002\u4e5f\u5c31\u662f\u8aaa\uff1a<\/p>\n
\/home\/A\/public_html\/share
\n\/home\/B\/public_html\/share
\n\u9019\u5169\u500b\u8cc7\u6599\u593e\uff0c\u662f\u6307\u5230\u540c\u4e00\u500b\u4f4d\u7f6e\u3002<\/p>\n
\u672c\u4f86\u6211\u4ee5\u70ba\uff0c\u53ea\u8981\u7528ln -s\u4f86\u5efasoftlink\uff0c\u5c31\u53ef\u4ee5\u628a\u554f\u984c\u89e3\u6c7a\u4e86\u3002\u7d50\u679c\u537b\u5931\u6557\u4e86\uff0csoftlink\u6240\u5728\u7684\u90a3\u500b\u5e33\u6236\uff0c\u7528ftp\u767b\u5165\u5f8c\uff0c\u770b\u4e0d\u5230share\u9019\u500b\u8cc7\u6599\u593e\u3002\u9019\u662f\u70ba\u4ec0\u9ebc\u5462\uff1f\u539f\u56e0\u662f\u5728\u9019\u908a<\/a>\uff0c\u5b83\u5beb\u8aaa\uff0csymbolic link\u53ea\u80fd\u6307\u5411\u300c\u6b63\u78ba\u7684\u300d\u7684\u5730\u65b9\u3002\u4f7f\u7528\u8005\u7684ftp\u5e33\u6236\u57fa\u672c\u4e0a\u662f\u4e00\u500b\u88abchroot\u7684\u74b0\u5883\uff0c\u6240\u4ee5\u7576\u7136\u4e0d\u80fd\u53bb\u770b\u5230\u5225\u7684\u4f7f\u7528\u8005\u7684\u6a94\u6848\u3002<\/p>\n A symbolic link is a pointer to the “right” file. But if that original file is outside the jail then you can’t access it. This is the goal of a jail. Otherwise a normal user could create a symbolic link in the jail to So jailed is jailed. Probably a hard link will do the job, as this is a “copy without duplicating the used size”. And for the FTP server it is like a normal file (with all the problems).<\/p>\n \u90a3\u9ebc\uff0c\u9019\u6a23\u7684\u554f\u984c\u8a72\u5982\u4f55\u8655\u7406\u5462\uff1f\u7528 mount –bind\u4f86\u8655\u7406\u5427\u3002\u9019\u500b<\/a>\u662f\u6b63\u78ba\u7684\u4f5c\u6cd5\u3002<\/p>\n mkdir \/home\/website\/files\/ \u50cf\u9019\u6a23\u5b50\u7684\u4f5c\u6cd5\uff0cshared\u9019\u500b\u4f7f\u7528\u8005ftp\u767b\u5165\u5f8c\uff0c\u5c31\u770b\u5f97\u5230 website\u9019\u500b\u4f7f\u7528\u8005\u7684\u8cc7\u6599\u593efiles\u4e86\u3002\u56e0\u70ba \/home\/shared\/files \u548c \/home\/website\/files\u662f\u540c\u4e00\u500b\u8cc7\u6599\u593e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u6536\u5230\u4e86\u5ba2\u6236\u7684\u8981\u6c42\uff0c\u5e0c\u671b\u5728\u4ed6\u6240\u79df\u7528\u7684\u7368\u7acb\u4e3b\u6a5f\u4e0b\u7684\u4e8c\u500baccount\uff0cA\u548cB\uff0c\u6709\u5171\u7528\u7684\u8cc7\u6599\u593e\u3002\u4e5f\u5c31\u662f\u8aaa\uff1a \/hom … \u95b1\u8b80\u5168\u6587 cpanel\u4e3b\u6a5f\u4e0b\uff0c\u8a2d\u5b9a\u4e0d\u540c\u7684\u5e33\u6236\u53ef\u4ee5\u5171\u7528\u8cc7\u6599\u593e<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[3,4],"tags":[214,6,37],"_links":{"self":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/150"}],"collection":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":3,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":652,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/150\/revisions\/652"}],"wp:attachment":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\/etc\/passwd<\/code>\u00a0and just read it. What a security risk!<\/p>\n
\nmount –bind \/home\/shared\/files \/home\/website\/files\/<\/p>\n