「不必要なディレクト閲覧禁止」の編集履歴(バックアップ)一覧はこちら

不必要なディレクト閲覧禁止」(2008/08/19 (火) 09:22:28) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

この機能を有効にするにはvsftpdでは、chrootを利用します。 例えば、hogehogeユーザがアクセスした場合は、/home/hogehogeディレクトリが/(ルート)になり、 ~/etcディレクトリなどは見えなくなります。 #vi /etc/vsftpd/vsftpd.conf 94行目付近に以下の行を追加する。 ----------下記抜粋---------- # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). chroot_local_user=YES #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd.chroot_list ----------下記抜粋---------- 変更が完了したら、設定を保存してエディタを終了します。 ~次に設定を有効にするためvsftpdを再起動します。 #/etc/init.d/vsftpd restart これで、ホームディレクトより上は閲覧できなくなります。

表示オプション

横に並べて表示:
変化行の前後のみ表示: