Ubuntu 23.04 ProFTPD をインストールする手順

環境

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar
# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 23.04 Release: 23.04 Codename: lunar
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar

ProFTPDのインストール手順
1.ProFTPD をインストールします。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# apt -y install proftpd-basic
# apt -y install proftpd-basic
# apt -y install proftpd-basic

2. ProFTPD の設定を行います

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# vi /etc/proftpd/proftpd.conf
# vi /etc/proftpd/proftpd.conf
# vi /etc/proftpd/proftpd.conf

1) IPv6を「off」変更
UseIPv6 off

2).サーバー名を変更する

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ServerName "www.arkgame.com"
ServerName "www.arkgame.com"
ServerName "www.arkgame.com"

3).chroot のルートディレクトリ指定

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
DefaultRoot ~
DefaultRoot ~
DefaultRoot ~

3.FTP 接続を禁止するユーザを 記載する
arkuser

4.proftpdを再起動する

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# systemctl restart proftpd
# systemctl restart proftpd
# systemctl restart proftpd

 

Ubuntu 23.04

Posted by arkgame