vsftp介绍使用

 The first thing you should install the ftp software. In rhel 6.0, you should start the service vsftp using the command :
#service vsftpd restart or other methods.

    Here I want to say a problem appeared. That is 500 OOPS: cannot change directory:/home/xxx. When you enter your username and password, it occurred. The username is your login name like Jams.

    So what can we solve the problem? The easiest method is create a new user but the home directory must not   be  /home/xxx, the question is selinux. You can create a user like this:
# useradd -d /ftphome/ftp/ftproot -s /sbin/nologin username.
    Then you should change the password for username :
#passwd username

Okay, you can login the ftp server like this:
ftp 192.168.x.x
input the username, then enter the password. Ok, enjoy it.

But how to create a directory in /home/xxx?
I browsed many websites there is one method but I failed!
You can try it one more time:

setsebool -P ftpd_disable_trans 1
service vsftpd restart

I tried other methods to make it work, the popular way is disable the Selinux.
If it still can't solved problem. You can try this:
[root@linux115 vsftpd]# setsebool allow_ftpd_full_access 1
[root@linux115 vsftpd]# setsebool allow_ftpd_use_cifs 1
[root@linux115 vsftpd]# setsebool allow_ftpd_use_nfs 1
[root@linux115 vsftpd]# setsebool -P ftp_home_dir 1 
[root@linux115 vsftpd]# setsebool httpd_enable_ftp_server 1
[root@linux115 vsftpd]# setsebool tftp_anon_write 1
[root@linux115 vsftpd]# service vsftpd restart

你可能感兴趣的:(软件工具,ftp,server,tftp)