Guest anon Posted May 28, 2003 Report Share Posted May 28, 2003 Can't get the bloody thing to work. have tried standalone version and through inetd. My ftp client connects, but thats as far as it goes. No login or handshake. Any ideas? [ ServerName "ProFTPD Default Installation" ServerType standalone DefaultServer on # 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 # 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 30 # Set the user and group under which the server will run. User nobody Group nogroup # Normally, we want files to be overwriteable. <Directory /> AllowOverwrite on </Directory> # A basic anonymous configuration, no upload directories. <Anonymous ~ftp> User ftp Group ftp # 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 # We want 'welcome.msg' displayed at login, and '.message' displayed # in each newly chdired directory. DisplayLogin welcome.msg DisplayFirstChdir .message # Limit WRITE everywhere in the anonymous chroot <Limit WRITE> DenyAll </Limit> </Anonymous> <Global> RequireValidShell off </Global> Quote Link to comment Share on other sites More sharing options...
DragonMage Posted May 28, 2003 Report Share Posted May 28, 2003 I don't know since I am not a proftpd master.. but it seems that the anonymous section is a bit different from mine. <Anonymous ~ftp> Shouldn't that be <Anonymous /ftp> or something like that? I also put something in my anonymous section. DefaultChdir /ftp Just in case the first one doesn't take Quote Link to comment Share on other sites More sharing options...
Guest anon Posted May 28, 2003 Report Share Posted May 28, 2003 Well i just tried that, no go. Thing is i can't even connect as root, it says its connected, but then times out. :? Quote Link to comment Share on other sites More sharing options...
DragonMage Posted May 28, 2003 Report Share Posted May 28, 2003 Routing problem perhaps? Maybe it's firewall issues? You cannot connect even as localhost? Note that I cannot login as root either, but I can login as anonymous and my own account. Quote Link to comment Share on other sites More sharing options...
Guest anon Posted May 28, 2003 Report Share Posted May 28, 2003 No, its something in config i think, my ftp app (gFTP) says its connecting, then connected. But nothing appears after that, no welcome message or folders appear. Doesn't ask for password either. Quote Link to comment Share on other sites More sharing options...
DragonMage Posted May 28, 2003 Report Share Posted May 28, 2003 You do have an /ftp directory don't you? How bout if you comment the .message line does it work? Anyway.. here is my own /etc/proftpd.conf It works for me so maybe you can find something in there. # This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group # "nobody" and "ftp" for normal operation and anon. ServerName "DragonMage's Emergency FTP" ServerType standalone DefaultServer on # Allow FTP resuming. # Remember to set to off if you have an incoming ftp for upload. AllowStoreRestart on # 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 # 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 5 # Set the user and group that the server normally runs at. User nobody Group nogroup # Normally, we want files to be overwriteable. <Directory /*> AllowOverwrite on </Directory> <Anonymous /dex/mp3> User ftp Group ftp UserAlias anonymous ftp RequireValidShell off <Limit WRITE> DenyAll </Limit> DefaultChdir /dex/mp3 </Anonymous> # Needed for NIS. PersistentPasswd off # Default root can be used to put users in a chroot environment. # As an example if you have a user foo and you want to put foo in /home/foo # chroot environment you would do this: # # DefaultRoot /home/foo foo Anyway.. have you tried connecting using command line ftp? Maybe it's gftp that is having a problem.. not your ftp server. I know I have a few problems with gftp not being able to enter certain directories even though command line ftp and other clients can enter them just fine. Quote Link to comment Share on other sites More sharing options...
Guest anon Posted May 28, 2003 Report Share Posted May 28, 2003 I have an var/ftp/ folder But even in command ftp it just says connected, doesnt ask for password. I hate networking. LOL [ [root@kernow me]# ftp 213.232.94.69 Connected to 213.232.94.69. And another thing, [root@dp-5003 root]# service proftpd start Starting proftpd: [ OK ] [root@dp-5003 root]# service proftpd stop Shutting down proftpd: [FAILED] [root@dp-5003 root]# service proftpd stop Quote Link to comment Share on other sites More sharing options...
scoopy Posted May 29, 2003 Report Share Posted May 29, 2003 [root@dp-5003 root]# service proftpd start Starting proftpd: [ OK ] [root@dp-5003 root]# service proftpd stop Shutting down proftpd: [FAILED] [root@dp-5003 root]# service proftpd stop First thing I would try (because of above) is to uninstall and then reinstall. Don't think thats the Linux thing to do, but it fixes things like this for me sometimes. I would recommend using the rpm on MDK's disks too (if this is for a MDK setup). Second, your network seems fine from this end. I connected to your "TEST PAGE". To this networking rookie, I would doublecheck that port 21 is open... either in your firewall, or router. Thirdly, what kind of goodies are you gonna offer? Maybe we can trade accounts? Quote Link to comment Share on other sites More sharing options...
Guest rdt Posted May 29, 2003 Report Share Posted May 29, 2003 I have an var/ftp/ folder But even in command ftp it just says connected' date=' doesnt ask for password. I hate networking. LOL[code'][[root@kernow me]# ftp 213.232.94.69 Connected to 213.232.94.69. This lack of responce after the 'Connected ...' is just an indication that the server is not actually running. I know that you tried to start it, and it said 'OK' but no response is a definite indication of server not running. After you attempt to start the serverr, run a 'ps fax' and see if you can find such a process running. Quote Link to comment Share on other sites More sharing options...
Guest anon Posted May 29, 2003 Report Share Posted May 29, 2003 It seems that port 21 is being used by another service. parsing '/etc/proftpd.conf' configuration - <Directory />: adding section for resolved path '/' dp-5003.uk2net.com - Failed binding to 0.0.0.0, port 21: Address already in use dp-5003.uk2net.com - Check the ServerType directive to ensure you are configured correctly. [root@dp-5003 root]# Any ideas how to find out what it is/disable it? Quote Link to comment Share on other sites More sharing options...
tyme Posted May 29, 2003 Report Share Posted May 29, 2003 telnet to it, type in some random charcaters, hit return, see if you get a response? (just a thought) please note this will be different than ftp-ing into it. Quote Link to comment Share on other sites More sharing options...
Guest anon Posted May 29, 2003 Report Share Posted May 29, 2003 Maybe this will help, though i don'r really understand it. tcp 0 0 *:20000 *:* LISTEN tcp 0 0 localhost.localdo:32769 *:* LISTEN tcp 0 0 *:rsync *:* LISTEN tcp 0 0 *:sunrpc *:* LISTEN tcp 0 0 *:10000 *:* LISTEN tcp 0 0 *:http *:* LISTEN tcp 0 0 *:ftp *:* LISTEN tcp 0 0 dp-5003.uk2net.c:domain *:* LISTEN tcp 0 0 localhost.locald:domain *:* LISTEN tcp 0 0 *:ssh *:* LISTEN tcp 0 0 localhost.localdom:rndc *:* LISTEN tcp 0 0 localhost.localdom:6011 *:* LISTEN tcp 0 0 localhost.localdom:6012 *:* LISTEN tcp 0 0 localhost.localdom:6011 localhost.localdo:32787 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32786 ESTABLISHED tcp 0 32 localhost.localdom:6011 localhost.localdo:32785 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32784 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32799 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32797 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32793 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32783 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32782 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32780 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32777 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32776 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32827 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32825 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32800 ESTABLISHED tcp 0 0 localhost.localdom:6011 localhost.localdo:32813 ESTABLISHED tcp 0 0 localhost.localdom:swat localhost.locald:sunrpc TIME_WAIT tcp 0 0 localhost.localdoma:902 localhost.locald:sunrpc TIME_WAIT tcp 0 3600 dp-5003.uk2net.com:ssh pc-80-192-220-5-n:32868 ESTABLISHED tcp 0 0 dp-5003.uk2net.com:ssh pc-80-192-220-5-n:32836 ESTABLISHED tcp 0 0 localhost.localdo:32813 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32800 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32825 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32827 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32780 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32782 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32783 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32776 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32777 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32797 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32799 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32793 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32784 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32785 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32786 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32787 localhost.localdom:6011 ESTABLISHED tcp 0 0 localhost.localdo:32787 localhost.localdom:6011 ESTABLISHED udp 0 0 *:32769 *:* udp 0 0 *:10000 *:* udp 0 0 *:20000 *:* udp 0 0 dp-5003.uk2net.c:domain *:* udp 0 0 localhost.locald:domain *:* udp 0 0 *:sunrpc *:* udp 0 0 dp-5003.uk2net.com:ntp *:* udp 0 0 localhost.localdoma:ntp *:* udp 0 0 *:ntp *:* Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 2028 /tmp/.font-unix/fs7100 unix 2 [ ACC ] STREAM LISTENING 4867 /tmp/mcop-root/dp-5003_uk2net_com-0731-3ed63226 unix 2 [ ACC ] STREAM LISTENING 4769 /tmp/.ICE-unix/dcop1828-1054224925 unix 2 [ ACC ] STREAM LISTENING 4900 /tmp/.ICE-unix/1851 unix 2 [ ACC ] STREAM LISTENING 4764 /tmp/ksocket-root/kdeinit-localhost:11 unix 2 [ ACC ] STREAM LISTENING 4795 /tmp/ksocket-root/klauncher3cR50b.slave-socket unix 2 [ ACC ] STREAM LISTENING 5168 /tmp/ksocket-root/kdesud_localhost:11 unix 11 [ ] DGRAM 851 /dev/log unix 3 [ ] STREAM CONNECTED 8615 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 8614 unix 3 [ ] STREAM CONNECTED 8597 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 8596 unix 3 [ ] STREAM CONNECTED 5952 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 5951 unix 3 [ ] STREAM CONNECTED 5948 /tmp/.ICE-unix/1851 unix 3 [ ] STREAM CONNECTED 5947 unix 3 [ ] STREAM CONNECTED 5161 /tmp/.ICE-unix/1851 unix 3 [ ] STREAM CONNECTED 5160 unix 3 [ ] STREAM CONNECTED 5153 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 5152 unix 3 [ ] STREAM CONNECTED 5072 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 5071 unix 3 [ ] STREAM CONNECTED 5068 /tmp/.ICE-unix/1851 unix 3 [ ] STREAM CONNECTED 5067 unix 3 [ ] STREAM CONNECTED 4984 /tmp/.ICE-unix/1851 unix 3 [ ] STREAM CONNECTED 4983 unix 3 [ ] STREAM CONNECTED 4964 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 4963 unix 3 [ ] STREAM CONNECTED 4953 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 4952 unix 3 [ ] STREAM CONNECTED 4943 /tmp/.ICE-unix/1851 unix 3 [ ] STREAM CONNECTED 4942 unix 3 [ ] STREAM CONNECTED 4935 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 4934 unix 3 [ ] STREAM CONNECTED 4929 /tmp/.ICE-unix/1851 unix 3 [ ] STREAM CONNECTED 4928 unix 3 [ ] STREAM CONNECTED 4921 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 4920 unix 3 [ ] STREAM CONNECTED 4915 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 4914 unix 3 [ ] STREAM CONNECTED 4909 /tmp/.ICE-unix/1851 unix 3 [ ] STREAM CONNECTED 4908 unix 3 [ ] STREAM CONNECTED 4899 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 4898 unix 3 [ ] STREAM CONNECTED 4878 /tmp/ksocket-root/kdeinit-localhost:11 unix 3 [ ] STREAM CONNECTED 4877 unix 3 [ ] STREAM CONNECTED 4859 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 4858 unix 3 [ ] STREAM CONNECTED 4802 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 4801 unix 3 [ ] STREAM CONNECTED 4789 /tmp/.ICE-unix/dcop1828-1054224925 unix 3 [ ] STREAM CONNECTED 4788 unix 3 [ ] STREAM CONNECTED 4783 unix 3 [ ] STREAM CONNECTED 4782 unix 2 [ ] DGRAM 2581 unix 2 [ ] DGRAM 2087 unix 2 [ ] DGRAM 2036 unix 2 [ ] DGRAM 1976 unix 2 [ ] DGRAM 1883 unix 2 [ ] DGRAM 1843 unix 2 [ ] DGRAM 1602 unix 2 [ ] DGRAM 1068 unix 2 [ ] DGRAM 866 [root@dp-5003 root]# Quote Link to comment Share on other sites More sharing options...
tyme Posted May 29, 2003 Report Share Posted May 29, 2003 this: tcp 0 0 *:ftp *:* LISTEN indicates that you have an ftp server running (it's listening, sssshhh)....of some sort :-/ check your services. is proftp set to start at boot? or maybe some other ftp server? Quote Link to comment Share on other sites More sharing options...
scoopy Posted May 29, 2003 Report Share Posted May 29, 2003 Looks like tyme is on to something. Something you have tried to setup before is most likely the culprit. I would make sure previous attempts at a server are cleaned out (and not running). And what is this bind address of 0.0.0.0 and why does it want port 21? Another idea is to use webmin... I was playing with this proftp-anonymous server setup last night and hosed my server (no biggie, nothing to lose at this time), but webmin gave me an easy way to rewrite the config files, etc., to get it back up and running. Quote Link to comment Share on other sites More sharing options...
Guest anon Posted May 29, 2003 Report Share Posted May 29, 2003 I tried shutting down the services one by one, and trying proftpd. No luck. There must be a way of finding out exactly what app is using 21 :? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.