My vsftpd was working. I use it configured via xinetd and turn it off (disabled = yes) when I'm not using it to keep the bad guys from hammering on it. Recently I upgraded to 4.2 (via yum update). That' the only change I know of on the system. And I didn't have any problems with it. Today when I try to ftp, i enabled it in xinetd.d (with disable = no and a "service xinetd restart") But I can't connect. Well, I connect, but then I'm dropped with the reply: 500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.conf The config file is there: -rw------- 1 ftp ftp 4271 Oct 23 21:03 vsftpd.conf I haven't changed it's permissions. the ftp account appears intact: ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin There are no related entries on tehlog, only the connect in /var/log/secure: Oct 23 21:11:58 tn1 xinetd[13086]: START: ftp pid=13113 from=xx.xx.xx.xx I tried starting it manually via service vsftpd start. That appeared to start fine, but when I look no process is running. So I tried to start it manually and get teh same error [root at tn1 init.d]# /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf 500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.conf Anyone help? Thanks, Scott
Looks to me that the permissions are not set up to allow access directly to the file. as user root, can you edit said file ?I'm wondering if you may need to change permissions to the file. Here's my set up: -rw------- 1 root root 4144 Aug 21 19:39 /etc/vsftpd/vsftpd.conf scott wrote:> My vsftpd was working. I use it configured via xinetd and turn it off > (disabled = yes) when I'm not using it to keep the bad guys from > hammering on it. > > Recently I upgraded to 4.2 (via yum update). That' the only change I > know of on the system. And I didn't have any problems with it. > > Today when I try to ftp, i enabled it in xinetd.d (with disable = no > and a "service xinetd restart") But I can't connect. Well, I > connect, but then I'm dropped with the reply: > > 500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.conf > > The config file is there: > -rw------- 1 ftp ftp 4271 Oct 23 21:03 vsftpd.conf > > I haven't changed it's permissions. > > the ftp account appears intact: > ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin > > There are no related entries on tehlog, only the connect in > /var/log/secure: > Oct 23 21:11:58 tn1 xinetd[13086]: START: ftp pid=13113 from=xx.xx.xx.xx > > I tried starting it manually via service vsftpd start. That appeared > to start fine, but when I look no process is running. > > So I tried to start it manually and get teh same error > > [root at tn1 init.d]# /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf > 500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.conf > > Anyone help? > > Thanks, Scott > > > > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > > >
Matt Arnilo S. Baluyos (Mailing Lists)
2005-Oct-24 05:02 UTC
[CentOS] vsftpd failing since upgrade to 4.2
On 10/24/05, scott <scott.list at mlec.net> wrote:> My vsftpd was working. I use it configured via xinetd and turn it off > (disabled = yes) when I'm not using it to keep the bad guys from hammering > on it. > > Recently I upgraded to 4.2 (via yum update). That' the only change I know > of on the system. And I didn't have any problems with it. > > Today when I try to ftp, i enabled it in xinetd.d (with disable = no and a > "service xinetd restart") But I can't connect. Well, I connect, but then > I'm dropped with the reply: > > 500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.confi've run across this error message also (although i'm not so sure if it's because of the 4.2 upgrade). try doing a tail -f on /var/log/messages and see if you're getting SELinux errors ("avc denied") whenever you try to do something on vsftpd. my vsftpd is working now though. what i did was to just reboot the system. i think it may have been that the SELinux labels on your vsftpd files have not yet been updated. -- Stand before it and there is no beginning. Follow it and there is no end. Stay with the ancient Tao, Move with the present.