LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-844438/)

fatrat84 11-15-2010 04:15 PM

FTP
 
Hi Guys, I got this really strange issue regarding ftp to a Red Hat Linux 5.5.

I created user just like I normally do

useradd -d /home/login -g users xxx

that is all good, I can use that user account to ftp to the server, however after about one and half day, it just stopped working. and when I try to ftp it gives me 530 error, and I can no longer use that account to ftp. I can't even use root to ftp!! Is that normal? I try to deleat the user account and recreate the account, and it still wont work.

This is really driving me up the wall, I know this sounds stupid, but for the life of me I can not figure out the reason for this not to work. I think it is either permission issue or a demon?

paulsm4 11-15-2010 04:22 PM

Hi -

I'd check the following:

1. Make sure FTP is still enabled (either an ftp daemon, or xinetd)
2. Check your log files
3. Check your /etc/ftp* files
In particular, make sure "real" users are ENABLED in "ftpaccess", and
NONE of your actual users are listed in "ftpusers" (which EXCLUDES ftp access).

If you're still having problems, I'd cut/paste:

1. Any specific errors/warnings you might have found
2. Your specific OS and version (e.g. "Red Hat Linux 5.5", or even better "cat /etc/*red*")
3. Your specific FTP server name and version (e.g. " rpm -qa|grep -i ftp")

fatrat84 11-15-2010 04:28 PM

i'm sure ftp is still working, as in if I just create a new user login it will work for one and half day, after that it just dies, so I create a new one, it works again.. and dies.. during the whole time no restart of the server or the demon

paulsm4 11-15-2010 04:41 PM

Dude - maybe the "new user" thing is COINCIDENCE ;)

Please try the above:
Quote:


I'd check the following:

1. Make sure FTP is still enabled (either an ftp daemon, or xinetd)
2. Check your log files
3. Check your /etc/ftp* files
In particular, make sure "real" users are ENABLED in "ftpaccess", and
NONE of your actual users are listed in "ftpusers" (which EXCLUDES ftp access).

If you're still having problems, I'd cut/paste:

1. Any specific errors/warnings you might have found
2. Your specific OS and version (e.g. "Red Hat Linux 5.5", or even better "cat /etc/*red*")
3. Your specific FTP server name and version (e.g. " rpm -qa|grep -i ftp")

fatrat84 11-15-2010 05:36 PM

Yes, ftp and xinetd are still running, I just restart the server so all demons should restart now and make sure they all running. and ftp users list and other list looks like what they should be.

ftp-0.17-35.e15
lftp-3.5.1-2.fc6
tftp-server-0.42-3.1
vsftpd-2.0.5-10.e15

paulsm4 11-15-2010 05:58 PM

OK, what about the logs?

First stop: /var/log/messages.

Perhaps there's an FTP-specific log (for example, maybe "/var/log/vsftp").

Please look (for example,
Quote:

find / -name "*ftp*" -print 2>/dev/null
)

Also check out this link to enable further logging (if necessary):

http://www.linuxforums.org/forum/sus...d-logging.html


All times are GMT -5. The time now is 05:42 PM.