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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值