できるかな?
[root@CentOS-7-Server ~]# yum remove proftpd
読み込んだプラグイン:fastestmirror, langpacks
依存性の解決をしています
–> トランザクションの確認を実行しています。
—> パッケージ proftpd.x86_64 0:1.3.5e-12.el7 を 削除
–> 依存性解決を終了しました。
base/7/x86_64 | 3.6 kB 00:00
epel/x86_64/metalink | 8.0 kB 00:00
epel/x86_64 | 4.7 kB 00:00
epel/x86_64/updateinfo | 1.0 MB 00:08
epel/x86_64/primary_db | 7.0 MB 01:08
extras/7/x86_64 | 2.9 kB 00:00
updates/7/x86_64 | 2.9 kB 00:01
依存性を解決しました
================================================================================
Package アーキテクチャー
バージョン リポジトリー 容量
================================================================================
削除中:
proftpd x86_64 1.3.5e-12.el7 @epel 9.7 M
トランザクションの要約
================================================================================
削除 1 パッケージ
インストール容量: 9.7 M
上記の処理を行います。よろしいでしょうか? [y/N]y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
削除中 : proftpd-1.3.5e-12.el7.x86_64 1/1
警告: /etc/xinetd.d/xproftpd は /etc/xinetd.d/xproftpd.rpmsave として保存されま した。
警告: /etc/proftpd.conf は /etc/proftpd.conf.rpmsave として保存されました。
警告: /etc/ftpusers は /etc/ftpusers.rpmsave として保存されました。
検証中 : proftpd-1.3.5e-12.el7.x86_64 1/1
削除しました:
proftpd.x86_64 0:1.3.5e-12.el7
完了しました!
できるじゃん!じゃあ、
[root@CentOS-7-Server ~]# yum remove xinetd
読み込んだプラグイン:fastestmirror, langpacks
依存性の解決をしています
–> トランザクションの確認を実行しています。
—> パッケージ xinetd.x86_64 2:2.3.15-14.el7 を 削除
–> 依存性解決を終了しました。
依存性を解決しました
================================================================================
Package アーキテクチャー
バージョン リポジトリー 容量
================================================================================
削除中:
xinetd x86_64 2:2.3.15-14.el7 @base 261 k
トランザクションの要約
================================================================================
削除 1 パッケージ
インストール容量: 261 k
上記の処理を行います。よろしいでしょうか? [y/N]y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
削除中 : 2:xinetd-2.3.15-14.el7.x86_64 1/1
検証中 : 2:xinetd-2.3.15-14.el7.x86_64 1/1
削除しました:
xinetd.x86_64 2:2.3.15-14.el7
完了しました!
これで、汚れを知らないあの頃に戻れました。そして
[root@CentOS-7-Server ~]# yum install –enablerepo=epel proftpd
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp-srv2.kddilabs.jp
* epel: ftp.riken.jp
* extras: ftp-srv2.kddilabs.jp
* updates: ftp-srv2.kddilabs.jp
依存性の解決をしています
–> トランザクションの確認を実行しています。
—> パッケージ proftpd.x86_64 0:1.3.5e-12.el7 を インストール
–> 依存性解決を終了しました。
依存性を解決しました
================================================================================
Package アーキテクチャー
バージョン リポジトリー 容量
================================================================================
インストール中:
proftpd x86_64 1.3.5e-12.el7 epel 3.7 M
トランザクションの要約
================================================================================
インストール 1 パッケージ
総ダウンロード容量: 3.7 M
インストール容量: 9.7 M
Is this ok [y/d/N]: y
Downloading packages:
proftpd-1.3.5e-12.el7.x86_64.rpm | 3.7 MB 00:45
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : proftpd-1.3.5e-12.el7.x86_64 1/1
検証中 : proftpd-1.3.5e-12.el7.x86_64 1/1
インストール:
proftpd.x86_64 0:1.3.5e-12.el7
完了しました!
要するに、proftpd と xinetd を削除して、あらたに proftpd を
インストールし直しました。
道に迷ったら、出発点に戻るのは鉄則ですよね。
[root@CentOS-7-Server ~]# vi /etc/proftpd.conf
ServerName "ProFTPD server"
↓↓↓
ServerName "FTP server"
DefaultRoot ~ !adm
↓↓↓
#DefaultRoot ~ !adm
DefaultRoot /管理しやすい場所 ユーザー名
[root@CentOS-7-Server ~]# systemctl start proftpd
[root@CentOS-7-Server ~]# systemctl status proftpd
● proftpd.service – ProFTPD FTP Server
Loaded: loaded (/usr/lib/systemd/system/proftpd.service; disabled; vendor preset: disabled)
Active: active (running) since 金 2023-01-06 22:04:25 JST; 1min 30s ago
Process: 2072 ExecStart=/usr/sbin/proftpd $PROFTPD_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 2073 (proftpd)
CGroup: /system.slice/proftpd.service
mq2073 proftpd: (accepting connections)
1月 06 22:04:24 CentOS-7-Server systemd[1]: Starting ProFTPD FTP Server…
1月 06 22:04:25 CentOS-7-Server proftpd[2073]: 192.168.1.** – ProFTPD 1…
1月 06 22:04:25 CentOS-7-Server systemd[1]: Can't open PID file /run/pr…y
1月 06 22:04:25 CentOS-7-Server systemd[1]: Started ProFTPD FTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
やれば、できるじゃん。よし!繋いでみる!
繋がりません!