LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   FTP users get: 500 OOPS: reading non-root config file (https://www.linuxquestions.org/questions/linux-networking-3/ftp-users-get-500-oops-reading-non-root-config-file-477041/)

tstrong12 08-24-2006 03:29 PM

FTP users get: 500 OOPS: reading non-root config file
 
Running: Linux REDlogger 2.4.21-47.EL

I've had FTP users logging in and working for awhile now and today they started getting this error:

500 OOPS: reading non-root config file
Login failed.
421 Service not available, remote server has closed connection

Permissions and ownerships on /etc/vsftp:
drwxr-xr-x 3 root root 1024 Aug 24 17:01 vsftpd
-rw-r--r-- 1 root root 252 Aug 24 04:04 vsftpd.ftpusers
-rw-r--r-- 1 root root 402 Aug 24 04:04 vsftpd.user_list

vsftpd:
total 11
drwxr-xr-x 3 root root 1024 Aug 24 17:01 .
drwxr-xr-x 58 root root 6144 Aug 24 17:28 ..
drwxr-xr-x 2 root root 1024 Aug 24 04:05 user_config
-rw-r--r-- 1 root root 15 Jun 8 2005 vsftpd.chroot_list
-rw-r--r-- 1 root root 697 Aug 24 04:04 vsftpd.conf
-rw-r--r-- 1 root root 376 Aug 24 04:04 vsftpd.userlist

Anyone see this before? Help Please...

tstrong12 08-24-2006 04:39 PM

Okay, does vsftpd need to be rebuilt or anything, because I did just upgrade the kernel before all of these problems started? Any help out there would be highly appreciated.

Thanks,

shawnbishop 11-08-2007 02:16 AM

Good Day

I see nobody posted a solution to this problem, I am having the same issue now with my vsftp FTP server.

I havent done any updates.....

The server has been working for 7 months with no problem...

lsteacke 11-08-2007 08:55 AM

Did you guys do any configuring of the vsftpd.conf file before you noticed these errors? Or did literally nothing change and the error started to happen, aside from upgrading the kernel.

Have you guys updated to the latest package of vsftpd?

try rpm -Fvh [vsftpd filename]

shawnbishop 01-29-2008 11:21 PM

Good Day

I am still having this problem, I have removed vsftp and reinstalled it....

vsftpd-2.0.5-10.el5.

I will see what errors I get today, will keep you posted.

masterfrog 02-04-2008 10:24 AM

I Had the same problem today, vsftpd was working fine for few hour and then i had the "oops:reading non-root config file" error message.

After making script to control vsftpd state and including vsftpd to Xinetd, I think I discovered the problem, the following conf (in vsftpd.conf ) :

xferlog_std_format=YES
seems to be the cause of our problem ( don't ask me why ...). So I set it to "NO" and everything was working fine again.


If this doesn 't solve your issue , using xinet.d to launch vsftpd should probably do the trick .

rushadrenaline 02-27-2008 05:17 AM

Well i fixed the problem ,while trying to work with vsftpd.
Actually the directory for the user i created (adduser ftpsharuser) had no directory inside it. i.e. /home/ftpsharuser had no directory in it.
Later i created a directory named shared ,,so it became /home/ftpsharuser/shared .
Then i chowned it to ftpsharuser (chown ftpsharuser:ftpsharuser /home/ftpsharuser/shared )
Then i commented user_config_dir=/home/blah , in /etc/vsftpd/vsftpd.conf,, and also changed "xferlog_std_format=YES" to NO
Restarted vsftpd
Thereafter when i logged in via ftp,,,there was no error (like there was one previously,,,,500 error changing directory).
So its like permission problem

shawnbishop 02-28-2008 01:38 AM

I had the same problem on two FTP servers


I removed the vsftpd and reinstalled it using the same config files, the error seems to have "disappeared"

leebrent 03-13-2008 12:45 AM

I had a similar problem, which was related to SELinux for me. My solution was setenforce 0, and then things started working.

Cheers,

Brent.

shawnbishop 07-18-2008 04:57 AM

Can you believe it, the problem has come up again.....

> rpm -qa vsftpd
vsftpd-2.0.5-10.el5

masterfrog 07-21-2008 02:34 AM

I used to have the same problem, so I use that (every 3minutes):
Code:

#!/bin/bash
wget ftp://anonymous@localhost/info.txt -O /scripts/supervision_ftp/info.txt
grep 'info' /scripts/supervision_ftp/info.txt
retval=$?
if [ "$retval" = 0 ]
then
echo "ok"
else
echo "ko"
echo `date`" : Service vsftpd KO, Restarting Services" >> /var/log/check_vsftpd.log
/etc/init.d/vsftpd reload
fi
rm -f  /scripts/supervision_ftp/info.txt

For some times the services restarting several times each hour, I just check the log, it has not restarted since 2 month ... I haven't done anything on the server ....


All times are GMT -5. The time now is 05:54 AM.