LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   FTP Server question.... (https://www.linuxquestions.org/questions/linux-networking-3/ftp-server-question-204926/)

Josh328 07-14-2004 10:52 AM

FTP Server question....
 
http://www.linuxquestions.org/questi...hreadid=204784

Thanks,
JOsh

LanRx 07-14-2004 11:13 AM

What kind of auth mechanism are you using for FTP?

And remember that if you are using PAM, you will have to consider, potentially, all offered authentication mechanisms.

Josh328 07-14-2004 12:09 PM

whatever installs with proftpd... haha.. excuse my ignorance.... i'm not sure how it is determined or how to change it..

Thanks for the reply..
JOsh

LanRx 07-14-2004 12:15 PM

Chances are good, that you're using some sort of PAM, which could be forced to wait for a timeout of sorts prior to authentication by the local files mechanism.

I would suggest checking your /etc/pam.d/system-auth file (location may vary) and look to see what kind of auth mechanism your device is using.

keefaz 07-14-2004 12:19 PM

The problem appears even from local host ? (ftp localhost)

XavierP 07-14-2004 12:19 PM

This is called cross posting. It is against the LQ Rules. If you think (after at least 24 hours) that your thread is not getting the attention it needs, bump it by replying with more information or report it to a moderator and ask for it to be moved.

Your other thread is now closed.

Josh328 07-14-2004 01:38 PM

sorry.. i wasn't aware of the rule... thank you...

i'm not sure if it has the problem ftping localhost... i'm not near the machine right now, so i couldn't say...

LanRx... proftpd is using system users... so how will changing this information effect other things with the system... what do i change it to etc...

josh

Josh328 07-14-2004 01:48 PM

Code:

#%PAM-1.0

auth        required      pam_env.so
auth        sufficient    pam_unix.so likeauth nullok
auth        required      pam_deny.so

account    required      pam_unix.so

password    required      pam_cracklib.so retry=3 minlen=2  dcredit=0  ucredit=0
password    sufficient    pam_unix.so nullok use_authtok md5 shadow
password    required      pam_deny.so

session    required      pam_limits.so
session    required      pam_unix.so


LanRx 07-14-2004 01:55 PM

I think that what I would do, is kill ftpd, and restart it with an increased debug level. Then try to FTP to it, it should show you what your problem is with your authentication.

Josh328 07-14-2004 02:01 PM

there is no "problem" really.. it's just really really slow... has no one else dealt with this?! it's the default install of proftpd with mdk10

LanRx 07-14-2004 02:08 PM

But, by running it in debug mode, you should be able to see if it is cycling waiting for something to timeout, or something of the sort.

Josh328 07-14-2004 02:25 PM

oh.. i see.. i'm not sure how to do that...

LanRx 07-14-2004 02:35 PM

killall ftpd (or ps -ef |grep ftpd, and look for the pid to kill)
restart the daemon interactively ./ftpd -d 255 or possibly ./ftpd -ddd (the -d flags are normally the debug switches. usually the debug switch follows one of the aforementioned syntaxes)
when you log in, and you're waiting for the daemon to provide auth, watch the stdout, and see if there is anything timing out during authentication.


All times are GMT -5. The time now is 10:26 PM.