|
|
ネットワーク No. 403 ProFTPD を利用してログインユーザーのディレクトリを制限するProFTPD を利用する際に、ログインしたユーザーの利用可能なディレクトリを制限する 方法です。 【ユーザーディレクトリのみに制限する場合】 /etc/proftpd/proftpd.conf を下記の様に変更します。 デフォルト(一部抜粋) ---------------------------------------------------------- # Set the user and group that the server normally runs at. User nobody Group nobody ---------------------------------------------------------- 追記後(一部抜粋) ---------------------------------------------------------- # Set the user and group that the server normally runs at. User nobody Group nobody DefaultRoot ~ ---------------------------------------------------------- 【特定のディレクトリのみに制限する場合】 /etc/proftpd/proftpd.conf を下記の様に変更します。 デフォルト(一部抜粋) ---------------------------------------------------------- # Set the user and group that the server normally runs at. User nobody Group nobody ---------------------------------------------------------- 追記後(一部抜粋) ---------------------------------------------------------- # Set the user and group that the server normally runs at. User nobody Group nobody DefaultRoot /home/ftp.dir/ ---------------------------------------------------------- 【特定のユーザーグループのみに制限する場合】 /etc/proftpd/proftpd.conf を下記の様に変更します。 デフォルト(一部抜粋) ---------------------------------------------------------- # Set the user and group that the server normally runs at. User nobody Group nobody ---------------------------------------------------------- 追記後(一部抜粋) ---------------------------------------------------------- # Set the user and group that the server normally runs at. User nobody Group nobody DefaultRoot ~ users ---------------------------------------------------------- # 上記例は[users]グループに所属するユーザーのみが対象になります。 FTP ftpaccess ProFTPD 関連文書 対象製品
Last modified : Mon Jun 18 JST 2001 # 3
|
Copyright © Turbolinux, Inc..All Right Reserved.

