FTP getting 500 error on RHEL5 in EC2 machine

While setting up VSFTPD in Amazon EC2 machine , i have received following error and over with some solution. hope this will help others to.

Type getenforce for getting SELinux boolean value

getsebool -a | grep ftp  and check ftp_home_dir –> off

Make this ON using setsebool command

[root@COE1 ~]# setsebool -P ftp_home_dir on
coe homedir /var/www/html/ or its parent directory conflicts with a
defined context in /etc/selinux/targeted/contexts/files/file_contexts,
/usr/sbin/genhomedircon will not create a new context. This usually indicates an incorrectly
defined system account.  If it is a system account please make sure its login shell is
/sbin/nologin.

Advertisements

Posted on February 23, 2014, in LInux Based. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: