ルートログイン530許可が拒否されました、530ログインが正しくありません



Root Login 530 Permission Denied



君たちありがとう: https://blog.51cto.com/3241766/2316986?source=dra

背景:クラウドプラットフォームのポート22は外部に公開されていないため、sftpは使用できません。そのため、ftpサービスを選択してください。
オペレーティングシステムのバージョン:
ftpパッケージをアップロードし、ftpサービスをインストールします。



[root@xxxxx tmp]# ll Total amount 172 drwx------. 2 root root 16384 August 2 17:39 lost+found -rw-r--r-- 1 root root 158772 March 22 2017 vsftpd-2.2.2-24.el6.x86_64.rpm [root@xxxxx tmp]# rpm -ivh vsftpd-2.2.2-24.el6.x86_64.rpm Preparing... ########################################### [100%] 1:vsftpd ########################################### [100%]

ftpサービスを再起動します。

[root@xxxxx tmp]# service vsftpd restart Close vsftpd: [Failed] Start vsftpd for vsftpd: [OK]

ポート21のステータスを表示します。



[root@xxxxx tmp]# netstat -an|grep 21 tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN unix 2 [ ] DGRAM 12145 @/org/kernel/udev/udevd unix 3 [ ] DGRAM 12165 unix 3 [ ] DGRAM 12164

ルートログインエラー「530アクセスが拒否されました」:

[root@xxxxx tmp]# ftp 127.0.0.1 Connected to 127.0.0.1 (127.0.0.1). 220 (vsFTPd 2.2.2) Name (127.0.0.1:root): root 530 Permission denied. Login failed. ftp>

問題が解決しました:

user_list構成ファイルのrootユーザーに注釈を付けます



[root@xxxxx tmp]# view /etc/vsftpd/user_list # vsftpd userlist# If userlist_deny=NO, only allow users in this file # If userlist_deny=YES (default), never allow users in this file, and # do not even prompt for a password. # Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers # for users that are denied. #root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody

rootとして再度ログインすると、エラー「530ログインが正しくありません」が報告されます。

[root@xxxxx tmp]# ftp 127.0.0.1 Connected to 127.0.0.1 (127.0.0.1). 220 (vsFTPd 2.2.2) Name (127.0.0.1:root): root 331 Please specify the password. Password: 530 Login incorrect. Login failed. ftp>

問題が解決しました:

構成ファイルftpusersのrootユーザーに注釈を付けます

[root@xxxxx tmp]# view /etc/vsftpd/ftpusers # Users that are not allowed to login via ftp #root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody

再度ログインして、成功します。

[root@xxxxx tmp]# ftp 127.0.0.1 Connected to 127.0.0.1 (127.0.0.1). 220 (vsFTPd 2.2.2) Name (127.0.0.1:root): root 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 227 Entering Passive Mode (127,0,0,1,118,246). 150 Here comes the directory listing. -rw------- 1 0 0 2172 Aug 02 10:58 anaconda-ks.cfg -rw-r--r-- 1 0 0 28568 Aug 02 10:58 install.log -rw-r--r-- 1 0 0 8442 Aug 02 10:54 install.log.syslog 226 Directory send OK. ftp>