Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-24-2006, 03:29 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2005
Posts: 3
Rep:
|
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...
|
|
|
|
08-24-2006, 04:39 PM
|
#2
|
|
LQ Newbie
Registered: Aug 2005
Posts: 3
Original Poster
Rep:
|
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,
|
|
|
|
11-08-2007, 02:16 AM
|
#3
|
|
Member
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249
Rep:
|
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...
|
|
|
|
11-08-2007, 08:55 AM
|
#4
|
|
Member
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99
Rep:
|
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]
|
|
|
|
01-29-2008, 11:21 PM
|
#5
|
|
Member
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249
Rep:
|
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.
|
|
|
|
02-04-2008, 10:24 AM
|
#6
|
|
LQ Newbie
Registered: Feb 2008
Posts: 2
Rep:
|
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 .
|
|
|
|
02-27-2008, 05:17 AM
|
#7
|
|
Member
Registered: Nov 2006
Location: Bangalore,New delhi
Distribution: RHEL5, Kubuntu, Mandriva 2008
Posts: 69
Rep:
|
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
|
|
|
|
02-28-2008, 01:38 AM
|
#8
|
|
Member
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249
Rep:
|
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"
|
|
|
|
03-13-2008, 12:45 AM
|
#9
|
|
Member
Registered: Oct 2007
Location: Nanaimo
Distribution: Red Hat 5
Posts: 39
Rep:
|
I had a similar problem, which was related to SELinux for me. My solution was setenforce 0, and then things started working.
Cheers,
Brent.
|
|
|
|
07-18-2008, 04:57 AM
|
#10
|
|
Member
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249
Rep:
|
Can you believe it, the problem has come up again.....
> rpm -qa vsftpd
vsftpd-2.0.5-10.el5
|
|
|
|
07-21-2008, 02:34 AM
|
#11
|
|
LQ Newbie
Registered: Feb 2008
Posts: 2
Rep:
|
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 ....
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:06 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|