vsftpdの設定

  • 設定
    • /etc/vsftpd/vsftpd.conf
      #匿名ユーザはログインさせない
      anonymous_enable=NO
      
      # You may change the default value for timing out an idle session.
      #アイドル時のタイムアウトを設定(600秒)
      idle_session_timeout=600
      #
      # You may change the default value for timing out a data connection.
      #接続時時のタイムアウトを設定(60秒)
      data_connection_timeout=60
      
      
      # By default the server will pretend to allow ASCII mode but in fact ignore
      # the request. Turn on the below options to have the server actually do ASCII
      # mangling on files when in ASCII mode.
      # Beware that turning on ascii_download_enable enables malicious remote parties
      # to consume your I/O resources, by issuing the command "SIZE /big/file" in
      # ASCII mode.
      # These ASCII options are split into upload and download because you may wish
      # to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
      # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
      # on the client anyway..
      #アスキーモードでアップロード許可する
      ascii_upload_enable=YES
      #アスキーモードでダウンロード許可する
      ascii_download_enable=YES
      
      # You may fully customise the login banner string:
      #ログオン時のグリーティングバナー
      ftpd_banner=Welcome to pontak.ddo.jp FTP service.
      #
      
      # 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_list_enable=YES
      #ホームパスより上へアクセスさせないユーザリストファイル
      #chroot_list_file=/etc/vsftpd/chroot_list
      
      # You may activate the "-R" option to the builtin ls. This is disabled by
      # default to avoid remote users being able to cause excessive I/O on large
      # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
      # the presence of the "-R" option, so there is a strong case for enabling it.
      #ディレクトリを削除可能にする
      #ls_recurse_enable=YES
      
      #/etc/vsftpd/user_listに書いてあるユーザ はログインさせない
      #userlist_enable=YES
      
      #ユーザが打ち込んだftpコマンドをログに残す(下記2つ)
      #xferlog_std_format=NO
      #log_ftp_protocol=YES
      
      #タイムスタンプ時間を日本時間に合わせる
      use_localtime=YES
      
      #パッシブモードを利用にする
      #pasv_promiscuous=YES
      #パッシブモード利用時のポート範囲(例:50000~50030)
      #pasv_min_port=50000
      #pasv_max_port=50030
      
  • OS起動時設定
    # chkconfig vsftpd on
    # chkconfig --list vsftpd
    
  • サービス起動
    # service vsftpd start
    

OSの文字コードを変更する

  • バックアップを行ってから文字コードを変更します。
    # cp -p /etc/sysconfig/i18n /etc/sysconfig/`date '+%Y%m%d_%H%M'`_i18n
    # sed -i 's/UTF-8/eucJP/g' /etc/sysconfig/i18n
    

最終更新:2009年04月22日 00:17