PDA

View Full Version : Remote FTP


nsworld
5th August 2005, 03:35
I too have a problem with remote ftp access from users.
using Fedora 4, I create the domain activate ftp and then add users.
I can use the browser ftp ( https://192.168.55.4:81/index.php?s=ae....etc ) but not cuteftp with the same credentials.

any ideas , ftp server is running according to the services menu

till
5th August 2005, 08:30
I too have a problem with remote ftp access from users.
using Fedora 4, I create the domain activate ftp and then add users.
I can use the browser ftp ( https://192.168.55.4:81/index.php?s=ae....etc ) but not cuteftp with the same credentials.

any ideas , ftp server is running according to the services menu

The WebFTP Interface uses the normal FTP commands, so i assume thet FTP
is working generally. Maybe the problem is your firewall configuration?

nsworld
5th August 2005, 14:03
I dont think its firewall as I'm on the local network behind the router,
I also have maped to the server through my own host file to by pass any dns.
Also Cuteftp does connect to the ftp server as I get the connection message, the problem is that it wont accept any user logging in

ftp access is enabled for the user (i presume this is working as i can use the ispconfig interface through the browser)

The reason I would like ftp to work through a client is that I have not found a way to transfer multiply files with the web browser method,
I did find a work around by installing MC and using the shell connect (f9) to access the old server to transfer the web pages across but I dont want to give users shell access.

just another thing maybe a wee bit off topic but where is phpmyadmin located/installed by default, I cant find it and installed the standard one in /home/admispconfig/ispconfig/web/phpMYAdmin
but again there is the problem of getting it intregrated into the admin facilities of ispconfig or setting up individual users manuall to be able to manage their dbases. - sorry if its a bit longwinded its the first time I do server like this normally used distros like clarkconnect.

(edit) firewall off on machine

I get this in logs :-
proftpd:
Unknown Entries:
session opened for user web1_nsworld by (uid=0): 16 Time(s)
session opened for user web1_kelljes by (uid=0): 5 Time(s)
authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=127.0.0.1
user=web1_nsworld: 2 Time(s) if it sheds any light !

admin
5th August 2005, 14:22
I dont think its firewall as I'm on the local network behind the router,
I also have maped to the server through my own host file to by pass any dns.
Also Cuteftp does connect to the ftp server as I get the connection message, the problem is that it wont accept any user logging in

ftp access is enabled for the user (i presume this is working as i can use the ispconfig interface through the browser)

Can you enable "Passive Transfers" in your FTP client and try again?

just another thing maybe a wee bit off topic but where is phpmyadmin located/installed by default, I cant find it and installed the standard one in /home/admispconfig/ispconfig/web/phpMYAdmin
but again there is the problem of getting it intregrated into the admin facilities of ispconfig or setting up individual users manuall to be able to manage their dbases. - sorry if its a bit longwinded its the first time I do server like this normally used distros like clarkconnect.
You have to go to Management -> Update Manager -> Update and install the phpmyadmin pkg package from www.ispconfig.org (http://www.%20ispconfig.org). Afterwards, you have a link to phpmyadmin under Tools. The directory where it's installed is /home/admispconfig/ispconfig/web/phpmyadmin.

nsworld
5th August 2005, 15:54
Ok phpmyadmin sorted but no luck on ftp access even with passive mode selected

falko
5th August 2005, 16:17
Ok phpmyadmin sorted but no luck on ftp access even with passive mode selected

Maybe your FTP server listens only on 127.0.0.1? Can you post the output of netstat -tap here?

nsworld
5th August 2005, 16:45
[root@www home]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 1801/xinetd
tcp 0 0 *:32769 *:* LISTEN 1427/rpc.statd
tcp 0 0 *:pop3s *:* LISTEN 1801/xinetd
tcp 0 0 *:mysql *:* LISTEN 1891/mysqld
tcp 0 0 *:pop3 *:* LISTEN 1801/xinetd
tcp 0 0 *:imap *:* LISTEN 1801/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 1410/portmap
tcp 0 0 *:81 *:* LISTEN 2180/ispconfig_http
tcp 0 0 *:ftp *:* LISTEN 2327/proftpd: (acce
tcp 0 0 home.!!!!!!!!!!!!!!!!!.com:ipp *:* LISTEN 1722/cupsd
tcp 0 0 home.!!!!!!!!!!!!!!!!!.com:5335 *:* LISTEN 1709/mDNSResponder
tcp 0 0 *:smtp *:* LISTEN 8589/master
tcp 1 10 home.!!!!!!!!!!!!!!!!!.com:smtp web25603.mail.ukl.yah:35834 LAST_ACK -
tcp 1 10 home.!!!!!!!!!!!!!!!!!.com:smtp web25603.mail.ukl.yah:35835 CLOSING -
tcp 0 0 192.168.55.6:52442 www.!!!!!!!!!!!!!!!!!.com:ssh ESTABLISHED 2933/ssh
tcp 0 0 *:http *:* LISTEN 2220/httpd
tcp 0 0 *:ssh *:* LISTEN 1793/sshd
tcp 0 0 *:https *:* LISTEN 2220/httpd
tcp 0 0 home.!!!!!!!!!!!!!!!!!.com:ssh ::ffff:192.168.55.3:2283 ESTABLISHED 4400/2
tcp 0 0 home.!!!!!!!!!!!!!!!!!.com:ssh ::ffff:192.168.55.3:1148 ESTABLISHED 2797/sshd: web1_nsw
[root@www home]#

falko
5th August 2005, 17:11
Your POP3 daemon is a funny guy:

:pop3

:D

Well, if you like, you can send me a private message or email, and I can have a short look at your server...

nsworld
5th August 2005, 17:40
yep -- interfeering smilies :p

what need I do to let you look at server ?

falko
5th August 2005, 18:37
yep -- interfeering smilies :p

what need I do to let you look at server ?

I've just sent you a private message.

falko
6th August 2005, 16:36
I got it working. :) I created a file /etc/pam.d/ftp with the following contents:

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

I restarted proftpd, and that's it!

domino
17th August 2005, 08:13
Hi, I'm having the same problem also. I read the other threads earlier posted by falco and I added the information as per instructions by falco, however there was alreay an existing /etc/pam.d/ftp. So I just amended falco's instruction. This is my ftp client log:
[R] 220 ProFTPD 1.2.10 Server (ProFTPD server) [192.168.2.101]
[R] USER user1
[R] 331 Password required for user1
[R] PASS (hidden)
[R] 530 Login incorrect.
[R] Connection failed
[R] Delaying for 60 seconds before reconnect attempt #1
I tried both passive and non-passive. I however can log in as Anonymous with no problems.

falko
17th August 2005, 11:52
Hi, I'm having the same problem also. I read the other threads earlier posted by falco and I added the information as per instructions by falco, however there was alreay an existing /etc/pam.d/ftp. So I just amended falco's instruction. This is my ftp client log:

I tried both passive and non-passive. I however can log in as Anonymous with no problems.

What did you use for username? It must be something like web[no]_xxxx.

domino
17th August 2005, 15:20
Sorry Falko, I haven't had a chance to tinker with ftpd yet. I'm still trying to get the DNS client working :(. But to answer you question, no. I did not use the username you suggested. But I have the feeling it's in the manual that I overlooked. Will post back.

domino
20th August 2005, 17:28
Ok... The fix above works when ftp access denied on Fedora 4. On Fedora 3, falco pointed out that it needs to be web[no]_xxxx :o

FTP on both systems work now.

Thanks!

jnoble
23rd August 2005, 21:39
Hello, I did as Falko suggested

nano /etc/pam.d/ftp


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


and
service proftpd restart


and all is well :) thanks Falko

Should you add that to the FC4 perfect install notes?

James

falko
24th August 2005, 01:18
Should you add that to the FC4 perfect install notes?

James
I have to verify that myself before I update the howto because when I first wrote it I didn't have to create this /etc/pam.d/ftp file. Maybe some packages have changed in the meantime... :rolleyes:

briggers
15th September 2005, 16:56
Hi,

I can confirm that this is necessary
I had been trying to get FTP to work - could log in with webftp but not with ftp client.
Added /etc/pam.d/ftp as suggested and it worked first time.
On FC4

Still have problem with sending mail, able to read but not send, username/password rejected. Is this likely to be a similar problem?

falko
15th September 2005, 17:07
Still have problem with sending mail, able to read but not send, username/password rejected. Is this likely to be a similar problem?What's the exact error message? Is there also anything in the mail log?

briggers
15th September 2005, 17:49
The mail client - Thunderbird - just reports that conn...

Moved to new thread

...oughts?

Thank you

falko
15th September 2005, 18:04
Can you open a new thread for that problem? Otherwise the current thread would handle two completely different problems. Thanks! :)

tmerrill
29th December 2005, 08:32
I have followed the Fedora Core 4 setup. I am just trying to ftp using root / "my root password". I have created the /etc/pam.d/ftp file and I am still having no luck. What am I missing. Firewall and everything seems to be ok. My machine is listening for ftp. Please help I have looked everywhere for an answer.

till
29th December 2005, 10:28
Root login with FTP is forbidden in FC4 because the FTP protocol transfers password in clear text. Use an SCP client like WinSCP for windows instead.

asiatype
23rd February 2006, 11:38
hi all ... pls someone help me . I install proftpd in FC4 box. proftpd works i think because i can log in with the user i created 'useradd -g <group> -d </home/directory> <new user> '. The problem is i cant create a directoy and it says '550 <user>permission denied' thnx :d

falko
23rd February 2006, 17:59
In which directory is the user when he logs in using FTP?
Please post your /etc/proftpd.conf here.

pine
23rd February 2006, 21:21
I too have a problem with remote ftp access from users.
using Fedora 4, I create the domain activate ftp and then add users.
I can use the browser ftp ( https://192.168.55.4:81/index.php?s=ae....etc ) but not cuteftp with the same credentials.

any ideas , ftp server is running according to the services menu

I've have the same problem with a mahine running under FC 4 installed in the standard fashion (not the Perfect Setup). I can, however, test the access to my ftp server successfully through the Netmonitor site (http://www.netmonitor.org/). I can't see any directory or file myself so I don't know how good the connection was.

It appears that I can connect to my server only through the local IP, not external IP or the external host name. Can someone test my theory by connecting to my server (ftp.yoons.org) with a login name of "tester, 1234abcd"? Please let me know what happend?
:p

falko
23rd February 2006, 23:50
pears that I can connect to my server only through the local IP, not external IP or the external host name. Can someone test my theory by connecting to my server (ftp.yoons.org) with a login name of "tester, 1234abcd"? Please let me know what happend?
:p
It's working for me, I could log in. Maybe it'S a firewall issue with your client PC.

pine
24th February 2006, 14:12
It's working for me, I could log in. Maybe it'S a firewall issue with your client PC.

You were able to log in and gain access to the files, were you not? I get the same problem with a client running under FC 4 and WindowsXP. The firewall built into the DSL router may cause my problem.

Thank you.

falko
24th February 2006, 16:02
You were able to log in and gain access to the files, were you not?
Yes, I could log in and see all files.

brainz
6th March 2006, 00:03
Hi all

Im still having the same problem with proftp and its PAM authentication

here is the log file

Mar 5 23:30:28 name proftpd[26144]: name.server.com (127.0.0.1[127.0.0.1]) - PAM(web1_name): Authentication failure.
Mar 5 23:30:28 ramjet proftpd[26144]: name.server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Mar 5 23:30:28 ramjet proftpd[26154]: name.server.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Mar 5 23:30:28 name proftpd(pam_unix)[26154]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=127.0.0.1 user=web1_name
Mar 5 23:30:31 name proftpd[26154]: name.server.com (127.0.0.1[127.0.0.1]) - PAM(web1_name): Authentication failure.
Mar 5 23:30:31 name proftpd[26154]: name.server.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Mar 5 23:30:39 name proftpd[26159]: 192.168.*.* (*.*.*.*[*.*.*.*]) - FTP session opened.
Mar 5 23:30:39 name ftp(pam_unix)[26159]: session opened for user web1_name by (uid=0)
Mar 5 23:35:42 name proftpd[26159]: 192.168.*.* (*.*.*.*[*.*.*.*]) - FTP no transfer timeout, disconnected
Mar 5 23:35:42 name proftpd[26159]: 192.168.*.* (*.*.*.*[*.*.*.*]) - PAM(setcred): System error
Mar 5 23:35:42 name proftpd[26159]: 192.168.*.* (*.*.*.*[*.*.*.*]) - PAM(close_session): System error
Mar 5 23:35:42 name proftpd[26159]: 192.168.*.* (*.*.*.*[*.*.*.*]) - FTP session closed.
Im wondering if you guys can help with this.....

I have also included a FTP in the /etc/pam.d/ftp with the following in it...

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

and it still has no effect at all i can login with a client i use smartftp but it doesnt let me login from the web ftp and the account has anonymous and ftp login rights activated.

Any help wpuld be apreciated...

Regards
brainz

till
6th March 2006, 00:11
and it still has no effect at all i can login with a client i use smartftp but it doesnt let me login from the web ftp and the account has anonymous and ftp login rights activated.

If you can login with smartftp, i guess the problem must be more related to the ISPConfig webftp then to your ftp server.

Does the problem occurs only with one account or with all accounts?

Can you please try to se a simple password (only a-z characters and numbers) for the FTP user (only for testing!). Maybe its a characterset conversion problem.

brainz
6th March 2006, 00:48
till


If you can login with smartftp, i guess the problem must be more related to the ISPConfig webftp then to your ftp server.
I set the account to a much simplier password without special characters and that work..... I am now able to connect to the ftp server with the web and smartftp. Thankyou!!!!

Does the problem occurs only with one account or with all accounts?
Yes it did occur with all accounts...

However i have encoutered another issue and what i did is i deleted the log file and then logged into the ftp account then tried to upload a folder with files in it and it froze and disconnected.

I checked the empty log and it was filled with this....

Mar 5 23:35:42 name proftpd[26159]: 192.168.*.* (*.*.*.*[*.*.*.*]) - PAM(setcred): System error
Mar 5 23:35:42 name proftpd[26159]: 192.168.*.* (*.*.*.*[*.*.*.*]) - PAM(close_session): System error
Mar 5 23:35:42 name proftpd[26159]: 192.168.*.* (*.*.*.*[*.*.*.*]) - FTP session open.
Mar 5 23:36:17 name proftpd[26159]: 192.168.*.* (*.*.*.*[*.*.*.*]) - FTP session closed.
Mar 5 23:36:17 name ftp(pam_unix)[26159]: session opened for user web1_name by (uid=0)
The ftp server allows for most files to upload but some files it just freezes and disconnects. I tried to look this up on the net and i did find the meaning of setcred but it did mean a whole lot to me...

Method setcred int System.PAM.PAM()->setcred(int flags)
Description Sets authentication credentials for the user specified in start
Returns System.PAM.PAM_SUCCESS on success

Could there be some sort of issue the PAM modules i dont know but i couldnt seem to find any relevent info with regards to this issue...

Im wondering to could it be related to Kerberos or pam_krb5 or something along those lines...

Any help would be fantastic thankyou

regards
brainz

falko
6th March 2006, 12:43
What's in /etc/pam.d/ftp? Do you have a file /etc/pam.d/secretd or something like that? What's in it?

brainz
6th March 2006, 20:36
Hi falko,


In answer to this question

What's in /etc/pam.d/ftp?
i have this in it...

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

In answer to these questions....


Do you have a file /etc/pam.d/secretd or something like that? What's in it?
I looked in the /etc/pam.d and there is no file in that directory with the filename secretd therefore there is no contence.

your help would be apreciated...

regards
brainz

falko
6th March 2006, 23:38
What's in /etc/proftpd.conf?

Can you do this?
cp -p /etc/pam.d/ftp /etc/pam.d/secret
cp -p /etc/pam.d/ftp /etc/pam.d/secretdDoes it change anything?

brainz
7th March 2006, 08:26
Hi falko,

Thanks for your help...

Ok i tried those two commands

cp -p /etc/pam.d/ftp /etc/pam.d/secret
cp -p /etc/pam.d/ftp /etc/pam.d/secretd
and from what i can tell all they really did is create two files secret and secretd and put the contense of ftp

#%PAM-1.0
auth required pam_unix.so nullok
account required pam_unix.so
session required pam_unix.so
in them i run those commands and then tried but unfortunatly the ftp server when using smartftp client connects really fast but when i try to upload it still freezes on particular files and disconnects.

What's in /etc/proftpd.conf?
Here is the proftpd.conf contense...

# This is the ProFTPD configuration file
# $Id: proftpd.conf,v 1.1 2004/02/26 17:54:30 thias Exp $

ServerName "ftp server"
ServerIdent on "FTP Server ready."
ServerAdmin root@localhost
ServerType standalone
#ServerType inetd
DefaultServer on
AccessGrantMsg "User %u logged in."
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off

# Use this to excude users from the chroot
DefaultRoot ~ !adm

# Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off

# Port 21 is the standard FTP port.
Port 21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# Default to show dot files in directory listings
ListOptions "-a"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228 off
#RootLogin off
#LoginPasswordPrompt on
#MaxLoginAttempts 3
#MaxClientsPerHost none
#AllowForeignAddress off # For FXP

# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 20

# Set the user and group that the server normally runs at.
User nobody
Group nobody

# This is where we want to put the pid file
ScoreboardFile /var/run/proftpd.score

# Normally, we want users to do a few things.
<Global>
AllowOverwrite yes
IdentLookups off
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
</Global>

# Define the log formats
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"

# TLS
# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
#TLSEngine on
#TLSRequired on
#TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem
#TLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pem
#TLSCipherSuite ALL:!ADH:!DES
#TLSOptions NoCertRequest
#TLSVerifyClient off
##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
#TLSLog /var/log/proftpd/tls.log

# A basic anonymous configuration, with an upload directory.
#<Anonymous ~ftp>
# User ftp
# Group ftp
# AccessGrantMsg "Anonymous login ok, restrictions apply."
#
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
#
# # Limit the maximum number of anonymous logins
# MaxClients 10 "Sorry, max %m users -- try again later"
#
# # Put the user into /pub right after login
# #DefaultChdir /pub
#
# # We want 'welcome.msg' displayed at login, '.message' displayed in
# # each newly chdired directory and tell users to read README* files.
# DisplayLogin /welcome.msg
# DisplayFirstChdir .message
# DisplayReadme README*
#
# # Some more cosmetic and not vital stuff
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# # Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE SITE_CHMOD>
# DenyAll
# </Limit>
#
# # An upload directory that allows storing files but not retrieving
# # or creating directories.
# <Directory uploads/*>
# AllowOverwrite no
# <Limit READ>
# DenyAll

# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>
#
# # Don't write anonymous accesses to the system wtmp file (good idea!)
# WtmpLog off
#
# # Logging for the anonymous transfers
# ExtendedLog /var/log/proftpd/access.log WRITE,READ default
# ExtendedLog /var/log/proftpd/auth.log AUTH auth
#
#</Anonymous>


DefaultRoot ~

Include /etc/proftpd_ispconfig.conf

From what i can tell the proftp.conf is pritty much standard and the only thing that i have added is this

IdentLookups off

in the global section.


thankyou for helping me..

regards
brainz

brainz
21st March 2006, 00:30
Hi All,

Just with regards to this issue i was wanting to post this like in the thought that it may come in handy to others that get this error below in there /var/log/messages which is related to proFTPd

- PAM(setcred): System error
- PAM(close_session): System error


I found this link http://www.directadmin.com/forum/showthread.php?s=&threadid=12002

http://www.directadmin.com/forum/images/icons/icon14.gif How-To Update ProFTPD Hello,

http://www.proftpd.org/
Here how to upgrade to ProFTPD1.3.0rc5 released

code:wget http://www.web4host.net/tools/upgrade-proftpd.sh
chmod 755 upgrade-proftpd.sh
./upgrade-proftpd.sh


Done 100%
100% error free

Wael


Which basically suggest that proFTPd is upgraded to ProFTPD1.3.0rc5
I dont know why or fully understand it but i has gotten ride of the the error message i was getting...

- PAM(setcred): System error
- PAM(close_session): System error

I have looked at the release notes for this upgrade and the last part was interesting.....

http://www.proftpd.org/docs/RELEASE_NOTES-1.3.0rc5

+ Deprecated configuration directives:

Bind
The Bind directive was causing too much confusion, and did not
do as many system administrators assumed it. Rather than using
Bind to associate a server configuration with an IP address,
administrators would assume it was meant for making ProFTPD
bind to a single address.

Rather than having a configuration like this:

<VirtualHost host1.domain.com>
Bind host2.domain.com
...
</VirtualHost>

The <VirtualHost> and DefaultAddress directives can now handle
multiple addresses, so that the above configuration becomes:

<VirtualHost host1.domain.com host2.domain.com>
...
</VirtualHost>
I dont know how this will have a impact on my server but what the hell its only a test server at the moment....

Maybe you guys can tell me if this will cause issues later on.....
I did the upgrade and everything seems to be still working fine except.....


For some reason and i dont know why but when i found out im gonna strangle it..........

When i upload say for example Joomla_1.0.8_eCommerceEdition_1.0.3.tar.gz
certain files still make smartftp freeze and the server disconnects.

So i would say that this error message i was getting now has no relation to the issue. Not only that i dont seem to be having any difficulty connecting using smartftp or the web version with in ispconfig...

However i still have the issue where when uploading smartftp freezes and disconnects on certains files but this time theres no error message.... :confused::rolleyes:

if anyone could help that would be excellent as well....

regards
brainz

falko
21st March 2006, 00:55
However i still have the issue where when uploading smartftp freezes and disconnects on certains files but this time theres no error message.... :confused::rolleyes:

Does it happen in both active and passive mode?
Is it maybe related to exceeding quota when you upload a file?

brainz
21st March 2006, 01:21
Hi falko,

Does it happen in both active and passive mode?
Yes it does happen in both active and passive mode and depending on which mode im uploading that certain files cause the freeze and disconnect... and it is the same file everytime in the same mode.....



Is it maybe related to exceeding quota when you upload a file?
I do remeber setting the 2 quota options usrquota and grpquota in the /etc/fstab file. What i understand from this is this is where users gets a quota file upload of a certain amount.... As far as i understand it :confused:

As for knowing how to change it well ill leave it your capable hands to tell me how to change the quota limit....:D:cool:

Ill tell you ones things forsure im learning a hell of alot and i would love have this issue solved... Without it i really cant have a live server i dont think....

But thankyou helping with this one and all the other stuff i have asked....

regards
brainz

brainz
21st March 2006, 07:28
Hi falko,

I dont know if this makes a difference

Here.....


Real Name: whatever
Email Address: @baktim.com
Username: web*_***
Password: *******
WebSpace MB:
Administrator: checked
Shell Access: checked

I changed the WebSpace MB from -1 to 99999999 then tried the ftp but this has not seem to made a difference.

regards
brainz :cool:

falko
21st March 2006, 18:52
-1 means "Unlimited" in ISPConfig.
What's the web space of the complete web site?

Any errors in the FTP log?

brainz
21st March 2006, 21:41
Hi falko,

What's the web space of the complete web site?


The webspace is set to -1 as well....

Space MB: -1 https://www.baktim.com:81/design/default/icons/help14.gif (https://www.baktim.com:81/multidoc/edit/edit.php?tree_id=5&#)
Traffic MB: -1 https://www.baktim.com:81/design/default/icons/help14.gif (https://www.baktim.com:81/multidoc/edit/edit.php?tree_id=5&#)


There doesnt seem to be any error in the message log....
All i can really see is a whole lot of open and closed sessions

/var/log/messages

Mar 21 21:00:01 ramjet proftpd[18800]: ramjet.baktim.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Mar 21 21:00:01 ramjet proftpd[18800]: ramjet.baktim.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Mar 21 21:00:11 ramjet NTP: rdate: timeout for 192.43.244.18

seems like every 30 minutes exactly a session from 127.0.0.1 is opened and closed striaght away....

and someone that it think is trying to gain access....

Mar 21 11:16:21 ramjet sshd(pam_unix)[5042]: check pass; user unknown
Mar 21 11:16:21 ramjet sshd(pam_unix)[5042]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=w010.z067104249.cmh-oh.dsl.cnc.net
Mar 21 11:16:26 ramjet sshd(pam_unix)[5068]: check pass; user unknown
Mar 21 11:16:26 ramjet sshd(pam_unix)[5068]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=w010.z067104249.cmh-oh.dsl.cnc.net

regards
brainz :cool::rolleyes:

brainz
22nd March 2006, 09:32
Hi All,

This is weird to me but i just tried to upload using the servers internal ip address to upload files and it works and it goes real fast....

Im wondering why it wont upload or or disconnect using www.baktim.com
and it flies like a bat out of hell when i use the internal ip address for the server. ??? :confused:


If i this about it logically this would tell me that there nothing wrong with the setup of proftpd on the server if it upload really quickly using the internal ip address but i jst cant think of what wiould be the issue where it doesnt allow me to upload all files using the www.baktim.com ????

(flies like a bat out of hell = really fast) <---- for those that arnt culturally from australia :D

regards
brainz :cool::rolleyes:

till
22nd March 2006, 09:42
Im wondering why it wont upload or or disconnect using www.baktim.com
and it flies like a bat out of hell when i use the internal ip address for the server. ??? :confused:

Did you try to connect from inside your local network (where your server is located too) with your domain that points to your external IP?

This might be blocked by your router, if the router has a spoofing filter.

Also FTP is known to have problems to connect trogh a router. Please try active and passive FTP mode.

Mar 21 21:00:01 ramjet proftpd[18800]: ramjet.baktim.com (127.0.0.1[127.0.0.1]) - FTP session opened.
Mar 21 21:00:01 ramjet proftpd[18800]: ramjet.baktim.com (127.0.0.1[127.0.0.1]) - FTP session closed.
Mar 21 21:00:11 ramjet NTP: rdate: timeout for 192.43.244.18

This looks like a connection from the ISPConfig script that checks if the FTP server is online.

brainz
22nd March 2006, 10:03
Hi till,

i look at the router and ports 20, 21 are avalible from outside....

But strangely i found a lot of this in the log of the router

Mar/22/2006 10:01:57 do_nat: buffer (2) too small

i wonder what this is :confused:

regards
brainz :rolleyes::cool:

till
22nd March 2006, 10:31
i look at the router and ports 20, 21 are avalible from outside....


FTP uses more ports after the initial connection. Have you tried bot, active and passive FTP, as i suggested?

But strangely i found a lot of this in the log of the router

Looks like your network address translation buffer was full. I suggest to ask your router manufacturer what might cause this.

brainz
26th March 2006, 03:02
Hi after a little reading and diagnosis with a app called
router connection manager 1.7.6 - This app watches the NAT table with all the incomming and out going and i sat there watching it while a upload to the web folder and at certain points i would say when the buffer memory is full it freezes the ftp upload which causes the ftp to disconnect.

To be honest i really put it down to a bad choice of router for a server anyway maybe ill look at a something like a cisco 871W sometime soon.

But thankyou for your help on this one....

regards
brainz :rolleyes::cool:

ceesco53
31st December 2007, 18:07
I got it working. :) I created a file /etc/pam.d/ftp with the following contents:

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

I restarted proftpd, and that's it!

This worked for me after reinstalling Centos 5 (x86_64 btw) over top of itself after an easily recoverable (I lucked out) crash on the system drive. Thanks for the info, saved me a lot of headache!

askmefor
2nd January 2008, 10:53
Hi Guys, Thanks for your valuable comments and workaround. I've been following up many of threads for same problem withou any success.
I've created ftp file under /etc/pam.d/ with the contents mentioned above, restarted proftpd and even rebooted the server but still invain.
Oh btw I am running Fedora 8.0 and just installed this for the first time :) so totally a new to linux ...:P) thanks for your help in advance.
my site works fine from Web-FTP, and all rest of the options works fine, even phpmyadmin works gr8, this is only hickup.. which I am still struggeling with....
My FTP Client gives error
Command: USER webx_xxxxx
Response: 331 Password required for webx_xxxxx
Command: PASS *******
Response: 530 Login incorrect.
Error: Could not connect to server
Whereas same user/pwd works fine with WebFTP

askmefor
3rd January 2008, 01:39
Hi Guys, Thanks for your valuable comments and workaround. I've been following up many of threads for same problem withou any success.
I've created ftp file under /etc/pam.d/ with the contents mentioned above, restarted proftpd and even rebooted the server but still invain.
Oh btw I am running Fedora 8.0 and just installed this for the first time :) so totally a new to linux ...:P) thanks for your help in advance.
my site works fine from Web-FTP, and all rest of the options works fine, even phpmyadmin works gr8, this is only hickup.. which I am still struggeling with....
My FTP Client gives error
Command: USER webx_xxxxx
Response: 331 Password required for webx_xxxxx
Command: PASS *******
Response: 530 Login incorrect.
Error: Could not connect to server
Whereas same user/pwd works fine with WebFTP
Its resolved!!!! dont know what happened, But i've just recreated users, and sites, so far my testing looks alright, I'll do the thorough testing and will post any error.
thanks

ras.su
28th November 2008, 00:08
Hello,

I found simpler solution for this prob.

Just:

ln -s /etc/pam.d/proftpd /etc/pam.d/ftp

(CentOS 5.2 x86_64)