Troubleshoot a Linux system that cannot be logged on via FTP

Source: Internet
Author: User

With FTP installed, there are two problems:

1, 530 Permission denied. Login failed.

Workaround:

Modify/etc/vsftpd.ftpusers file, which records the inability to use the FTP logged in user, will root User Comments

Modify/etc/vsftpd.user_list file that will root user comments.

Description:/etc/vsftpd.user_list files associated with the/etc/vsftpd/vsftpd.conf file, if the userlist_enable= in the/etc/vsftpd/vsftpd.conf file YES (which is also the default setting), users listed in the/etc/vsftpd.user_list file will not be able to use FTP.

2. Oops:cannot Change Directory:/root

1. Execution Setsebool-p Ftpd_disable_trans 1
Then restart Ftp:service vsftpd restart


2. Execute setsebool-p Ftpd_disable_trans 1 Error Boolean Ftpd_disable_trans is not defined words
([email protected] vsftpd]# setsebool-p Ftpd_disable_trans 1
Boolean Ftpd_disable_trans is not defined)
Perform setsebool-p Ftp_home_dir 1 first
See Getsebool-a |grep ftp_home results as follows:
Ftp_home_dir-On
Then follow the 1th method of execution;

3. If it is still unsuccessful, execute the following command, and then restart the FTP
[Email protected] vsftpd]# Setsebool allow_ftpd_full_access 1
[Email protected] vsftpd]# Setsebool allow_ftpd_use_cifs 1
[Email protected] vsftpd]# Setsebool Allow_ftpd_use_nfs 1
[Email protected] vsftpd]# setsebool-p Ftp_home_dir 1
[Email protected] vsftpd]# Setsebool httpd_enable_ftp_server 1
[Email protected] vsftpd]# Setsebool tftp_anon_write 1
[Email protected] vsftpd]# service vsftpd restart

Resolve unable to log on to the Linux system via FTP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.