*FTP サーバー [#gee72527] FTP サーバーのメモです。 **vsftpd [#icdbc000] vsftpd は RedHat9 に標準で入っている FTP サーバーです。 /etc/vsftpd/vsftpd.conf を書き換えることによって設定を変更できる。 **vsftpd 設定 [#a1cc41b5] anonymous_enable=YES local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_std_format=YES ascii_upload_enable=YES ascii_download_enable=YES chroot_local_user=YES chroot_list_enable=YES chroot_list_file=/etc/vsftpd.chroot_list pam_service_name=vsftpd userlist_enable=YES userlist_deny=NO listen=NO use_localtime=YES #force_dot_files=YES ←なぜかエラーになる **チェンジルートユーザーリストファイル [#e4be7497] /etc/vsftpd.chroot_list に root のみ記述。 **ユーザーリストファイル [#s1bdfdef] /etc/vsftpd.user_list に root と各ユーザー記述。 **禁止ユーザーリストファイル [#z1b968a1] /etc/vsftpd.ftpusers に禁止ユーザー記述。 **xinetd の設定 [#pcb93433] /etc/xinetd.d/ftpd に以下を記述。 service ftp { flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/vsftpd server_args = /etc/vsftpd/vsftpd.conf log_on_failure += USERID disable = no } **vsftpd の再起動 [#o64d0e2b] /etc/rc.d/init.d/xinetd restart を実行する。 ---- [[前に戻る>Linux]]