Local users cannot switch on problems when configuring VSFTPD. The problem is as follows:
c:\users\kai>ftp ftp > Open Span style= "COLOR: #800080" >172.24 . 144.10 connect to 172.24 . 144.10 220 (vsFTPd 2.2 . 2 ) User ( 172.24 . 144.10 :(None): Fftp 331 Please specify the password. Password: 500 oops:cannot change Directory:/home/fftp 500 Oops:priv_sock_get_cmd remote host closes the connection.
The solution is as follows:
View SELinux settings for FTP
grep FTP ------ -- -offtftp_use_nfs– > off
Change Allow_ftpd_full_access to On
[Email protected] vsftpd]# setsebool-p allow_ftpd_full_access on
-P is still in effect after restarting the computer, viewing the modified condition
[[email protected] vsftpd]# getsebool-a | grep ftp allow_ftpd_anon_write --> offallow_ftpd_full _access --> onallow_ftpd_use_cifs -- Offallow_ftpd_use_nfs --> Offftp_home_dir --> offftpd_connect_db --> offftpd_ Use_fusefs --> Offftpd_use_passive_mode -- offhttpd_enable_ftp_server --> Offtftp_anon_ Write --> offtftp_use_cifs --> Offtftp_use_nfs --off
[[Email protected] vsftpd]# service vsftpd restart off vsftpd: [OK] for vsftpd start vsftpd: [OK][[email protected] Vsftp d]#
Test FTP Login
FTP 172.24. 144.10 172.24. 144.10 . 2.2. 2 ) User (172.24. 144.10 :(None)): Fftp331 Please specify the password. Password: Login successful.
Problem solving.
Linux VSFTPD cannot log on cannot change directory:xxx priv_sock_get_cmd issue