View Full Version : Web-FTP Issue
nandhu
15th August 2005, 12:17
Hi All,
I'm back with a different problem now.
I logged in as a Client of a Reseller (in my case nandhu the username) into ISP Config and then clicked on Web-FTP link on the top.
In the Web Selection area:
Select Web: I selected a Website in the drop down for username: nandhu
Username: nandhu (Please note I also tried: web1_nandhu, the default that appreared int he username when selected the website).
Password: <appropriate password>
And upon clicking the Selection button, I got the following error:
The following error ocurred:
Could not connect as user web1_nandhu
Next >> (this is an hyper link)
But at the same time I also got the 3 toolbar buttons
File Upload, New Folder and FTP Logout.
When I clicked on FTP Logout, I get back to the Web Selection page.
But when I click on the Next hyper link, I'm thrown out of the ISP-Config back to ISP Config login screen.
If I click on File Upload or New Folder, I get the same error page back with the Next hyper link displayed.
I'm sure my proftp-d is running. I would like to mention that I have not altered any configuration, I just installed as told in the Falko's instructions and left it at that state.
ISP Config while installing did pickup the only FTP Daemon (PROFTPD) correctly.
So, please help me in getting this working correctly.
Please note: My firewall for port 21 is not opened (BT Voyager 240 is my h/w router+firewall+adsl modem). But then I think that should not matter as it is a web-based ftp. Correct me if I'm wrong in my assumption.
Many thanks for all your time and efforts.
- Nanda.
till
15th August 2005, 12:24
Hi All,
I'm back with a different problem now.
I logged in as a Client of a Reseller (in my case nandhu the username) into ISP Config and then clicked on Web-FTP link on the top.
In the Web Selection area:
Select Web: I selected a Website in the drop down for username: nandhu
Username: nandhu (Please note I also tried: web1_nandhu, the default that appreared int he username when selected the website).
Password: <appropriate password>
And upon clicking the Selection button, I got the following error:
The following error ocurred:
Could not connect as user web1_nandhu
Next >> (this is an hyper link)
But at the same time I also got the 3 toolbar buttons
File Upload, New Folder and FTP Logout.
When I clicked on FTP Logout, I get back to the Web Selection page.
But when I click on the Next hyper link, I'm thrown out of the ISP-Config back to ISP Config login screen.
If I click on File Upload or New Folder, I get the same error page back with the Next hyper link displayed.
I'm sure my proftp-d is running. I would like to mention that I have not altered any configuration, I just installed as told in the Falko's instructions and left it at that state.
ISP Config while installing did pickup the only FTP Daemon (PROFTPD) correctly.
So, please help me in getting this working correctly.
Please note: My firewall for port 21 is not opened (BT Voyager 240 is my h/w router+firewall+adsl modem). But then I think that should not matter as it is a web-based ftp. Correct me if I'm wrong in my assumption.
Many thanks for all your time and efforts.
- Nanda.
There is no difference betweeen the ISPConfig webbased FTP and a normal FTP Client, both are using the installed FTP-Server. You have to open your firewall for FTP, at least for localhost.
When the username web1_nandhu is presented by ISPConfig, this is the correct username for FTP Logins.
Can you connect with an normal FTP-Client?
nandhu
15th August 2005, 12:24
Hi,
I just looked at the other post in the forum.
http://www.howtoforge.com/forums/showthread.php?t=196
I'll try and do it this evening and will udpate this area.
But in the meantime your help with tips are always appreciated.
Regards,
Nanda.
nandhu
15th August 2005, 14:18
Thanks Till.
I'll try with normal ftp-client this evening and will update this area.
I'll also open up the port 21.
- Nanda.
nandhu
18th August 2005, 22:49
Hi Timme,
I tried smartftp free ftp client and i was able to login.
see the log extract from smart ftp below
SmartFTP v1.5.989.4
Resolving host name "192.168.1.20"
Connecting to 192.168.1.20 Port: 21
Connected to 192.168.1.20.
220 ProFTPD 1.2.10 Server (ProFTPD server) [192.168.1.20]
USER nandhu
331 Password required for nandhu.
PASS (hidden)
230 User nandhu logged in.
SYST
215 UNIX Type: L8
FEAT
211-Features:
MDTM
REST STREAM
SIZE
211 End
PWD
257 "/" is current directory.
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (192,168,1,20,128,22).
Opening data connection to 192.168.1.20 Port: 32790
LIST -aL
150 Opening ASCII mode data connection for file list
774 bytes transferred. (12.5 KB/s) (60 ms)
226 Transfer complete.
when i used web-ftp and tried to login with the same credentials, i tailed the /var/log/messages and get to see the following;-
Aug 18 21:43:07 aasai proftpd[31587]: myserver.domain.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Aug 18 21:43:07 aasai proftpd[31587]: myserver.domain.com (127.0.0.1[127.0.0.1]) - PAM(web6_xyz): Authentication failure.
Aug 18 21:43:07 aasai proftpd[31587]: myserver.domain.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Aug 18 21:43:08 aasai proftpd[31595]: myserver.domain.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Aug 18 21:43:08 aasai proftpd[31595]: myserver.domain.com (127.0.0.1[127.0.0.1]) - PAM(web6_xyz): Authentication failure.
Aug 18 21:43:08 aasai proftpd[31595]: myserver.domain.com (127.0.0.1[127.0.0.1]) - FTP session closed.
My netstat -tap for proftpd shows the following:-
tcp 0 0 *:ftp *:* LISTEN 2982/proftpd: (acce
Also my /etc/pam.d/ftp looks like the following:
#%PAM-1.0
auth required /lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth required /lib/security/pam_pwdb.so shadow nullok
# If this is enabled, anonymous logins will fail because the 'ftp' user does
# not have a "valid" shell, as listed in /etc/shells.
#
# If you enable this, it is recommended that you do *not* give the 'ftp'
# user a real shell. Instead, give the 'ftp' user /bin/false for a shell and
# add /bin/false to /etc/shells.
#auth required /lib/security/pam_shells.so
account required /lib/security/pam_pwdb.so
session required /lib/security/pam_pwdb.so
Any idea as how I could resolve it
Thanks.
- Nanda.
falko
18th August 2005, 23:19
Can you put this into /etc/pam.d/ftp (make a copy of your current file before):
#%PAM-1.0
auth required pam_unix.so nullok
account required pam_unix.so
session required pam_unix.so
Then restart Proftpd.
nandhu
19th August 2005, 10:56
Hi Falko,
I tried that and even with the modified /etc/pam.d/ftp all I get can get to work is only SmartFTP, not Web-FTP.
I tried SmartFTP with a System user.
I tried Web-FTP with the user whose username/password is same as System user.
If you manage to login into my server, you could see that I've two files now in /etc/pam.d/
one is: ftp.original and ftp.as.in.falkotimme
Currently I've copied the /etc/pam.d/ftp.original onto /etc/pam.d/ftp
I'm still confused as the error message does not tell us why the user could not login.
Thanks for your help.
Nanda.
lpaseen
8th September 2005, 17:38
Did you get it to work? how?
I did install ISPConfig on a debian system (which was done accirding to the "perfect install" guide for 3.1) and have the same issue. Web ftp doesn't work get two boxes with info that the lign failed. doing ftp directly to the server works.
/ps
till
8th September 2005, 17:56
Did you get it to work? how?
I did install ISPConfig on a debian system (which was done accirding to the "perfect install" guide for 3.1) and have the same issue. Web ftp doesn't work get two boxes with info that the lign failed. doing ftp directly to the server works.
Have you checked the FTP checkbox in the settings of this website?
Does other externel FTP clients (e.g. WS_FTP) work?
lpaseen
8th September 2005, 18:53
I did check the ftp check box
I can do ftp from another server to this server and login with the same credentials that fails when in web-ftp mode
till
8th September 2005, 21:23
Please check your proftpd.conf if your FTP Server listens also on localhost (IP 127.0.0.1).
lpaseen
8th September 2005, 21:57
Some environment background; I have a internal network with several computers. Normally I work on my desktop and this setup is on a lab system
Between desktop and labsystem it's nothing more then the switch and I don't use iptables on any of this servers.
I tried
ftp to localhost on the lab system, no problem
ftp from my desktop to lab, no problem
login to ISPConfig (https://clu217.intra.techwiz.ca:81/ ) as client I setup.
Here I get the small navigation menue with one site I created earlier
click on Web-FTP
Left shows a globe and "/", right shows "Select Web" (with only one choice), username, password and the "Selection" button.
I enter same username and password I used in the ftp tests earlier and it fails as described earlier in this thread (Can not connect but with the icons there)
except this time! I done the steps above several times and redid them now just to make sure of the exact output but now it worked. I haven't restarted anything on the server (but I did restart my browser). My only guess is that I had tried wrong password to many times and somehow locked it out before, or the browser restart cleared the cookies or something.
Since I already written all this I'm posting it and keep on testing, but for the moment it seems to work.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.