0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rootユーザでftp(パッシブモード)

Last updated at Posted at 2018-01-19

###インストール

# vsftpdとftpのインストール
yum install vsftpd ftp -y

# Enforce だったら setenforce 0 で変更
[root@localhost vsftpd]# getenforce
Permissive   

# ポート開放
firewall-cmd --zone=public --add-service=ftp --permanent

# サービス開始と自動起動
systemctl start vsftpd.service
systemctl enable vsftpd.service

###rootユーザーを許可するための編集箇所

  • rootユーザーの許可

/etc/vsftpd/user_list

#rootユーザをコメントアウト
#root

/etc/vsftpd/ftpusers

#rootユーザをコメントアウト
#root
  • パッシブモードで使用するポートを追記
/etc/vsftpd/vsftpd.conf
pasv_enable=YES
pasv_min_port=50020
pasv_max_port=50025
  • vsftpd.confに合わせてポート開放
firewall-cmd --zone=public --add-port=50020-50025/tcp --permanent
firewall-cmd --reload
  • 設定反映のためサービス再起動
systemctl restart vsftpd.service
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?