chroot 問題



贊助商連結


popen
2005-04-28, 09:18 PM
請問各位先進,小弟用 FreeBSD
apache 及 vsftpd 要使用 chroot
並分別安裝在 /chroot/apache 及 /chroot/vsftpd
這樣 apache 及 vsftpd 的根目錄就在上面二目錄
問題一:如需要外面的目錄,例如 /home/www/userfolder 等,要如何做
在 linux 可以用 mount -bind 來做,freebsd 就不知如何做了
問題二:萬一 apache 被駭,駭客能到的目錄只能到 /chroot/apache 還是能到 /chroot 及 /chroot/vsftpd 呢?
接問題二-> 在 linux 以 mount -bind 的 apache 被駭後,駭客是否能到問題一所述的 /home/www/userfolder 呢?如可以的話就蠻危險
因原本 apache 是在 httpd.conf 指定 html 的目錄,這樣駭客就看不到 html 目錄了..
謝謝各位 :D