LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-24-2006, 03:29 PM   #1
tstrong12
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
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...
 
Old 08-24-2006, 04:39 PM   #2
tstrong12
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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,
 
Old 11-08-2007, 02:16 AM   #3
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
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...
 
Old 11-08-2007, 08:55 AM   #4
lsteacke
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99

Rep: Reputation: 16
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]
 
Old 01-29-2008, 11:21 PM   #5
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
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.
 
Old 02-04-2008, 10:24 AM   #6
masterfrog
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
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 .
 
Old 02-27-2008, 05:17 AM   #7
rushadrenaline
Member
 
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69

Rep: Reputation: 15
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
 
Old 02-28-2008, 01:38 AM   #8
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
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"
 
Old 03-13-2008, 12:45 AM   #9
leebrent
Member
 
Registered: Oct 2007
Location: Nanaimo
Distribution: Red Hat 5
Posts: 39

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

Cheers,

Brent.
 
Old 07-18-2008, 04:57 AM   #10
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
Can you believe it, the problem has come up again.....

> rpm -qa vsftpd
vsftpd-2.0.5-10.el5
 
Old 07-21-2008, 02:34 AM   #11
masterfrog
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
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 ....
 
  


Reply

Tags
ftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp 500 OOPS: cannot change directory yhus Linux - Networking 24 03-24-2013 09:41 PM
500 OOPS: vsftpd: must be started as root userbr Linux - Networking 3 06-27-2011 12:44 AM
500 OOPS: unrecognised variable in config file c0c0deuz Linux - Networking 10 04-05-2007 05:09 PM
500VSFTPD Error [OOPS: missing value in config file for: ] rhonneil Linux - Newbie 1 04-20-2006 01:56 AM
VSFTP: 500 OOPS: unrecognised variable in config file snapper64 Linux - Software 4 07-01-2005 04:16 PM


All times are GMT -5. The time now is 10:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration