PDA

View Full Version : I can use web-ftp but i can't login normal ftp !!!


kong121s
20th April 2006, 11:26
Why why why why???

help me,please.
I don't know what i should check for this problem.

I login Web-ftp by
user : web2_test
pass : test
it can login.

but when i login ftp (ftp://www.test.com) by the same username and password
it appears "530 login incorrect"

thank for your help.

kong121s
20th April 2006, 12:19
I have a look in the ISPConfig logfile for errors:
I found this :


17.02.2006 - 14:57:06 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1857: WARNING: could not groupadd -g web2_anonftp &> /dev/null



and this


17.02.2006 - 14:57:06 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1861: WARNING: could not useradd -d /srv/www/web2/ftp -g web2_anonftp -M -s /bin/false -u 12004 web2_anonftp &> /dev/null

kong121s
20th April 2006, 14:11
have no one can help me T_T

...

now...
I can use all function in web-ftp but i can't login as admin in web-ftp
I can login as anonymous with normal ftp (ftp://www.test.com or use ftp client like cuteFTP) but I can't login as username which I used to login in web-ftp.

ps. sorry if my english is very bad T_T
I'm Thai people :)

falko
20th April 2006, 17:49
Which distribution do you use?
Any errors in the log in /var/log?
Do you use your server's IP address or FQDN in your FTP client? Please try the IP address.

kong121s
21st April 2006, 06:18
I test my server in office.

My server use 192.168.1.1 as default gateway,
255.255.255.0 as subnet-mask,
192.168.1.20 as its ip-address and
192.168.1.1 as dns server

I use my another computer in the same subnet, set
dns as 192.168.1.20 and call ftp://www.test.com

in /var/log/xferlog

Thu Apr 20 13:01:02 2006 0 127.0.0.1 16 /home/www/web2/test.php b _ i r web2_test ftp 0 * c

this occur when I upload file.

in /var/log/anaconda.log
there are some warning.. like this

..
..
15:16:32 WARNING : /etc/lilo.conf.anaconda doesn't exist
..
..
15:16:32 WARNING : /etc/blkid/blkid.tab doesn't exist
15:16:32 WARNING : /etc/blkid/blkid.tab.old doesn't exist
..
..
15:16:32 WARNING : /etc/modprobe.conf~ doesn't exist
..
..
15:16:32 WARNING : /etc/raidtab doesn't exist
15:16:32 WARNING : /etc/mdadm.conf doesn't exist

till
21st April 2006, 11:33
Have you checked that there is no firewall blocking FTP on your server?

falko
21st April 2006, 12:21
Which distribution do you use?

kong121s
21st April 2006, 22:50
i have already disable firewall (follow this http://www.howtoforge.com/perfect_setup_fedora_core_5 page 3 )


I use ISPConfig 2.2.1 with intel 64 bits 2core (dell server) and fedora core5

thank for your help :) :)

now, I'm trying to install fedora and ispconfig again.

falko
22nd April 2006, 17:14
Please try to follow the tutorial as close as possible, and try to avoid typos.

fobicodam
24th April 2006, 01:02
Ok, the answer for your problem is that:

Edit or create: /etc/pam.d/ftp
Write this:

------------------------------------------------------------------------------
#%PAM-1.0
auth required pam_unix.so nullok
account required pam_unix.so
session required pam_unix.so
------------------------------------------------------------------------------

Save it and restart proftpd

kong121s
24th April 2006, 10:03
Ok, the answer for your problem is that:

Edit or create: /etc/pam.d/ftp
Write this:

------------------------------------------------------------------------------
#%PAM-1.0
auth required pam_unix.so nullok
account required pam_unix.so
session required pam_unix.so
------------------------------------------------------------------------------

Save it and restart proftpd

Oh !! I did it. and now I can use normal ftp.
Thank fobicodam very very much.

:)

frbnet
24th April 2006, 19:23
Apr 24 18:20:28 linux proftpd[27134]: 10.0.0.3 (10.0.0.2[10.0.0.2]) - FTP session opened.
Apr 24 18:20:28 linux proftpd[27134]: 10.0.0.3 (10.0.0.2[10.0.0.2]) - PAM(web1_admin): Module is unknown.
Apr 24 18:21:25 linux proftpd[27174]: 10.0.0.3 (10.0.0.2[10.0.0.2]) - FTP session opened.
Apr 24 18:21:25 linux proftpd[27174]: 10.0.0.3 (10.0.0.2[10.0.0.2]) - PAM(web1_admin): Module is unknown.

falko
24th April 2006, 20:58
Did you try this? http://www.howtoforge.com/forums/showpost.php?p=687&postcount=11