FTP/TELNET on linux, not working


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP/TELNET on linux, not working
# 22  
Old 06-02-2003
netstat results

neo, here's a listing of netstat: What are we looking for?

Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 144 mickey:1338 206.142.144.142:6000 ESTABLISHED tcp 0 0 mickey:1332 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1330 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1327 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1326 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1323 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1322 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1307 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1306 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1304 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1303 206.142.144.142:6000 ESTABLISHED
tcp 32 0 mickey:1299 206.142.144.142:6000 ESTABLISHED
tcp 32 0 mickey:1295 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:netbios-ssn 206.142.144.142:1036 ESTABLISHED
tcp 1 0 mickey:1066 206.24.190.94:www CLOSE_WAIT
tcp 1 0 mickey:1065 unknown.level3.net:www CLOSE_WAIT
tcp 1 0 mickey:1064 unknown.level3.net:www CLOSE_WAIT
tcp 0 0 mickey:1063 65.54.192.248:www CLOSE_WAIT
tcp 1 0 mickey:1055 unknown.level3.net:www CLOSE_WAIT
tcp 0 0 mickey:16153 mickey:1033 ESTABLISHED
tcp 0 0 mickey:1033 mickey:16153 ESTABLISHED
tcp 0 0 mickey:16152 mickey:1032 ESTABLISHED
tcp 0 0 mickey:1032 mickey:16152 ESTABLISHED
tcp 0 0 mickey:16153 mickey:1031 ESTABLISHED
tcp 0 0 mickey:1031 mickey:16153 ESTABLISHED
tcp 0 0 mickey:16152 mickey:1030 ESTABLISHED
tcp 0 0 mickey:1030 mickey:16152 ESTABLISHED
tcp 0 0 mickey:16153 mickey:1029 ESTABLISHED
tcp 0 0 mickey:1029 mickey:16153 ESTABLISHED
tcp 0 0 mickey:16152 mickey:1028 ESTABLISHED
tcp 0 0 mickey:1028 mickey:16152 ESTABLISHED
tcp 0 0 mickey:16153 mickey:1027 ESTABLISHED
tcp 0 0 mickey:1027 mickey:16153 ESTABLISHED
tcp 0 0 mickey:16152 mickey:1026 ESTABLISHED
tcp 0 0 mickey:1026 mickey:16152 ESTABLISHED
tcp 0 0 mickey:16151 mickey:1025 ESTABLISHED
tcp 0 0 mickey:1025 mickey:16151 ESTABLISHED
[root@mickey /root]#
# 23  
Old 06-02-2003
netstat -a

Sorry, I should have asked for the output of netstat -a please post this output. Thanks. Then we'll discuss. Neo
# 24  
Old 06-03-2003
I know it's been a billion years since you posted your /etc/ftpaccess file. However here is mine. If mine works and your's doesn't, maybe you can figure it out from the diff (from wu-ftp.org by the way):

class all real,guest,anonymous *



limit all 10 Any /etc/msgs/msg.dead



readme README* login

readme README* cwd=*



message /welcome.msg login

message .message cwd=*



compress yes all

tar yes all



log commands real

log transfers anonymous,real inbound,outbound



shutdown /etc/shutmsg



email user@hostname
# 25  
Old 06-03-2003
Tony, I'm looking at that now, I just know this is something simple, something not set up right, its just driving me nuts trying to figure it out.


Neo, output is below:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 mickey:1084 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1083 206.142.144.142:6000 ESTABLISHED
tcp 0 0 *:1082 *:* LISTEN
tcp 0 0 mickey:1081 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:socks 206.142.144.142:6000 ESTABLISHED
tcp 0 0 *:1079 *:* LISTEN
tcp 0 0 *:1077 *:* LISTEN
tcp 0 0 mickey:1074 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1073 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1059 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1057 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:1056 206.142.144.142:6000 ESTABLISHED
tcp 0 0 *:1055 *:* LISTEN
tcp 32 0 mickey:1052 206.142.144.142:6000 ESTABLISHED
tcp 32 0 mickey:1048 206.142.144.142:6000 ESTABLISHED
tcp 0 0 mickey:netbios-ssn 206.142.144.142:3678 ESTABLISHED
tcp 0 0 *:6000 *:* LISTEN
tcp 0 0 mickey:16153 mickey:1033 ESTABLISHED
tcp 0 0 mickey:1033 mickey:16153 ESTABLISHED
tcp 0 0 mickey:16152 mickey:1032 ESTABLISHED
tcp 0 0 mickey:1032 mickey:16152 ESTABLISHED
tcp 0 0 mickey:16153 mickey:1031 ESTABLISHED
tcp 0 0 mickey:1031 mickey:16153 ESTABLISHED
tcp 0 0 mickey:16152 mickey:1030 ESTABLISHED
tcp 0 0 mickey:1030 mickey:16152 ESTABLISHED
tcp 0 0 mickey:16153 mickey:1029 ESTABLISHED
tcp 0 0 mickey:1029 mickey:16153 ESTABLISHED
tcp 0 0 mickey:16152 mickey:1028 ESTABLISHED
tcp 0 0 mickey:1028 mickey:16152 ESTABLISHED
tcp 0 0 mickey:16153 mickey:1027 ESTABLISHED
tcp 0 0 mickey:1027 mickey:16153 ESTABLISHED
tcp 0 0 mickey:16152 mickey:1026 ESTABLISHED
tcp 0 0 mickey:1026 mickey:16152 ESTABLISHED
tcp 0 0 *:16157 *:* LISTEN
tcp 0 0 *:16156 *:* LISTEN
tcp 0 0 *:16155 *:* LISTEN
tcp 0 0 *:16154 *:* LISTEN
tcp 0 0 *:6662 *:* LISTEN
tcp 0 0 *:16153 *:* LISTEN
tcp 0 0 mickey:16151 mickey:1025 ESTABLISHED
tcp 0 0 mickey:1025 mickey:16151 ESTABLISHED
tcp 0 0 *:16152 *:* LISTEN
tcp 0 0 *:16151 *:* LISTEN
tcp 0 0 *:7100 *:* LISTEN
tcp 0 0 *Smilierinter *:* LISTEN
tcp 0 0 *:amidxtape *:* LISTEN
tcp 0 0 *:amandaidx *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:swat *:* LISTEN
tcp 0 0 *:linuxconf *:* LISTEN
tcp 0 0 *:auth *:* LISTEN
tcp 0 0 *:finger *:* LISTEN
tcp 0 0 *:exec *:* LISTEN
tcp 0 0 *:login *:* LISTEN
tcp 0 0 *:shell *:* LISTEN
tcp 0 0 *:telnet *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
udp 0 0 localhost.localdom:1031 *:*
udp 0 0 mickey:netbios-dgm *:*
udp 0 0 mickey:netbios-ns *:*
udp 0 0 *:netbios-dgm *:*
udp 0 0 *:xdmcp *:*
udp 0 0 *:amanda *:*
udp 0 0 *:netbios-ns *:*
udp 0 0 *:ntalk *:*
udp 0 0 *:talk *:*
udp 0 0 *:biff *:*
raw 0 0 *:icmp *:* 7
raw 0 0 *:tcp *:* 7
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 0 [ ACC ] STREAM LISTENING 1353 /tmp/.X11-unix/X0
unix 0 [ ACC ] STREAM LISTENING 496 /dev/printer
unix 0 [ ACC ] STREAM LISTENING 538 /tmp/.font-unix/fs7100
unix 1 [ ] STREAM CONNECTED 2656 @00000068
unix 0 [ ACC ] STREAM LISTENING 2633 /tmp/.ICE-unix/2245
unix 0 [ ACC ] STREAM LISTENING 521 /dev/gpmctl
unix 4 [ ] DGRAM 393 /dev/log
unix 1 [ ] STREAM CONNECTED 2910 @00000073
unix 1 [ ] STREAM CONNECTED 2912 @00000074
unix 1 [ ] STREAM CONNECTED 2925 @00000075
unix 1 [ ] STREAM CONNECTED 2646 @00000066
unix 1 [ ] STREAM CONNECTED 2949 @00000076
unix 1 [ ] STREAM CONNECTED 1370 @00000065
unix 0 [ ACC ] STREAM LISTENING 2762 /tmp/orbit-kmartin/orb-1884062287146051773
unix 0 [ ACC ] STREAM LISTENING 2922 /tmp/orbit-kmartin/orb-9311142811922380839
unix 1 [ ] STREAM CONNECTED 2768 @00000071
unix 1 [ ] STREAM CONNECTED 1355 @00000062
unix 1 [ ] STREAM CONNECTED 2777 @00000072
unix 0 [ ACC ] STREAM LISTENING 2774 /tmp/orbit-kmartin/orb-11162631031151525197
unix 1 [ ] STREAM CONNECTED 2955
unix 1 [ ] STREAM CONNECTED 2954
unix 1 [ W ] STREAM CONNECTED 2953
unix 1 [ ] STREAM CONNECTED 2952
unix 1 [ ] STREAM CONNECTED 2950 /tmp/.ICE-unix/2245
unix 1 [ ] STREAM CONNECTED 2930
unix 1 [ ] STREAM CONNECTED 2929
unix 1 [ W ] STREAM CONNECTED 2928
unix 1 [ ] STREAM CONNECTED 2927
unix 1 [ ] STREAM CONNECTED 2926 /tmp/orbit-kmartin/orb-1884062287146051773
unix 1 [ ] STREAM CONNECTED 2913 /tmp/.ICE-unix/2245
unix 1 [ ] STREAM CONNECTED 2911 /tmp/.ICE-unix/2245
unix 1 [ ] STREAM CONNECTED 2778 /tmp/orbit-kmartin/orb-1884062287146051773
unix 1 [ ] STREAM CONNECTED 2769 /tmp/.ICE-unix/2245
unix 0 [ ] DGRAM 2727
unix 1 [ ] STREAM CONNECTED 2657 /tmp/.ICE-unix/2245
unix 1 [ ] STREAM CONNECTED 2647 /tmp/.ICE-unix/2245
unix 0 [ ] DGRAM 2598
unix 1 [ ] STREAM CONNECTED 1371 /tmp/.X11-unix/X0
unix 1 [ ] STREAM CONNECTED 1359 /tmp/.X11-unix/X0
unix 0 [ ] DGRAM 462
unix 0 [ ] DGRAM 406
# 26  
Old 06-03-2003
Thanks. I just wanted to verify that your ftp process was actually listening. It is, you can see it in this line of your output:

Quote:
tcp 0 0 *:ftp *:* LISTEN
Sounds like either:

(1) An ftpaccess file problem or

(2) Your ftp process is wrapped with a process, (like identd), that is checking DNS (or similar) to authenticate the network connection.

Again, I would suggest that you look for logfiles to see what ftp error messages you might be getting.

Could you post your ftp entry in inetd.conf ?
# 27  
Old 06-03-2003
Neo: I've tweaked the ftpaccess file, made it look like tony's above and still not working, i've checked the passwd file (but it works for telnet, just not ftp).


more inetd.conf
#
# inetd.conf This file describes the services that will be available
# through the INETD TCP/IP super server. To re-configure
# the running INETD process, edit this file, then send the
# INETD process a SIGHUP signal.
#
# Version: @(#)/etc/inetd.conf 3.10 05/27/93
#
# Authors: Original taken from BSD UNIX 4.3/TAHOE.
# Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
#
# Modified for Debian Linux by Ian A. Murdock <imurdock@shell.portal.com>
#
# Modified for RHS Linux by Marc Ewing <marc@redhat.com>
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# Echo, discard, daytime, and chargen are used primarily for testing.
#
# To re-read this file after changes, just do a 'killall -HUP inetd'
#
#echo stream tcp nowait root internal
#echo dgram udp wait root internal
#discard stream tcp nowait root internal
#discard dgram udp wait root internal
#daytime stream tcp nowait root internal
#daytime dgram udp wait root internal
#chargen stream tcp nowait root internal
#chargen dgram udp wait root internal
#time stream tcp nowait root internal
#time dgram udp wait root internal
#
# These are standard services.
#
ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
#
# Shell, login, exec, comsat and talk are BSD protocols.
#
shell stream tcp nowait root /usr/sbin/tcpd in.rshd
login stream tcp nowait root /usr/sbin/tcpd in.rlogind
exec stream tcp nowait root /usr/sbin/tcpd in.rexecd
comsat dgram udp wait root /usr/sbin/tcpd in.comsat
talk dgram udp wait nobody.tty /usr/sbin/tcpd in.talkd
ntalk dgram udp wait nobody.tty /usr/sbin/tcpd in.ntalkd
dtalk stream tcp wait nobody.tty /usr/sbin/tcpd in.dtalkd
#
# Pop and imap mail services et al
#
#pop-2 stream tcp nowait root /usr/sbin/tcpd ipop2d
#pop-3 stream tcp nowait root /usr/sbin/tcpd ipop3d
#imap stream tcp nowait root /usr/sbin/tcpd imapd
#
# The Internet UUCP service.
#
#uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/lib/uucp/uucico -l
#
# Tftp service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers." Do not uncomment
# this unless you *need* it.
#
#tftp dgram udp wait root /usr/sbin/tcpd in.tftpd
#bootps dgram udp wait root /usr/sbin/tcpd bootpd
#
# Finger, systat and netstat give out user information which may be
# valuable to potential "system crackers." Many sites choose to disable
# some or all of these services to improve security.
#
finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd
#cfinger stream tcp nowait root /usr/sbin/tcpd in.cfingerd
#systat stream tcp nowait guest /usr/sbin/tcpd /bin/ps -auwwx
#netstat stream tcp nowait guest /usr/sbin/tcpd /bin/netstat -f inet
#
# Authentication
#
auth stream tcp wait root /usr/sbin/in.identd in.identd -e -o
#
# End of inetd.conf

linuxconf stream tcp wait root /bin/linuxconf linuxconf --http
swat stream tcp nowait.400 root /usr/sbin/swat swat

#SAMBA NetBIOS services added
netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd
netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd

#SAMBA NetBIOS services added
netbios-ssn stream tcp nowait root /usr/sbin/smbd smbd
netbios-ns dgram udp wait root /usr/sbin/nmbd nmbd
amanda dgram udp wait amanda /usr/local/libexec/amandad amandad
amandaidx stream tcp nowait amanda /usr/local/libexec/amindexd amindexd
amidxtape stream tcp nowait amanda /usr/local/libexec/amidxtaped amidxtaped
# 28  
Old 06-03-2003
Ok, notice that in inetd.conf you have two flags after ftpd, the -l and -a flags. From the man page:

Quote:
-a Connections are only allowed for users who can authenticate (via the ftp AUTH mechanism) and who are authorized to connect to the named account without a password. (Anonymous ftp may also be allowed if it is configured.)
Quote:
-l Each ftp(1) session is logged in the syslog.

Based on your inetd.conf configuration, you should have ftp logfile entries in your syslog file. If you don't know where those files are (or if it is working properly), please post the contents of your /etc/syslog.conf file.

Before you do that, you might consider editing your inetd.conf ftp entry as follows:

Quote:
ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd
In other words, get rid of the -l and -a flags (temporarily, to troubleshoot).

Don't forget to restart inetd with something like:

Quote:
killall -1 inetd
Neo
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

telnet and ssh not working .... but it pinging in Solaris 8

hi Everyone telnet and ssh not working in Solaris 8 .... but it pinging.... i also checked /etc/services /etc/inet/inetd.conf ps -ef | grep telnet ans default router ... everythinking is ok .... when i connect telnet then suddently closed ... and ssh is connection refused ... help... (1 Reply)
Discussion started by: coolboys
1 Replies

2. Windows & DOS: Issues & Discussions

ANT: Telnet is not working

I am trying the below ANT telnet task: <telnet userid="appldev" password="techm123" server="${BT_Server}"> <read>/u01/appldev/devappl/po/11.5.0/reports</read> <!--write>cd /u01/appldev/devappl/po/11.5.0/reports/</write--> <write>ls</write> <read... (0 Replies)
Discussion started by: Dip
0 Replies

3. Linux

FTP not working under Linux but working under any other OS ??? Very strange

Dear all, I am totally despaired and puzzled. Using Filezilla under Windows under the same network as our Linux servers is working. Using FTP command-line client under any of our Linux debian servers is not working ! I tried with different FTP servers -> same problem ! All commands are... (12 Replies)
Discussion started by: magix_ch
12 Replies

4. Red Hat

FTP on Linux is not working as expected

Hi, I need to write a Linux shell script which will perform an FTP operation to another server. main.sh will contain - ftp -nd Dest.IP.address < ftpScript.sh Contents of ftpScript.sh is given below - user userid passwd prompt lcd /vidya/Input cd vidya/Output mput *.* close ... (1 Reply)
Discussion started by: vidyak
1 Replies

5. UNIX for Dummies Questions & Answers

Telnet is not working properly

telnet at my system is behaving stange. Some times I am able to telnet to other machines but sometimes it stop doing that. Then i have to reboot the machine and most of the time (not 100%) it works. SImilar is the case with SSH. Sometime it works , some time it don't. i am new to Unix and I do not... (1 Reply)
Discussion started by: deepak_pathania
1 Replies

6. Red Hat

telnet & ftp in linux AS4 with root account

hi, i installed linux as4, i need telnet and ftp with root account. anybody show me how to configure. TIA, Bong (3 Replies)
Discussion started by: bong02
3 Replies

7. Solaris

after patch, telnet not working

The problem: I installed the Solaris 8 recommended patch cluster 117350-11 over 108528-15 before the Christmas break. The server is a SunFire V100. Here is the situation: Before the patch install, there was a working cron job that did daily, weekly, and monthly backups of the V100 filesystems... (3 Replies)
Discussion started by: antalexi
3 Replies

8. Cybersecurity

One accout for FTP other to TELNET

Hi All, If I want to have two user accounts from the same grop in UNIX Solaries. However, I want one of them to be used only for FTP while the other for TELNET. Can anybody tell me how to do that? Best Regards (13 Replies)
Discussion started by: omran
13 Replies

9. UNIX for Dummies Questions & Answers

FTP is not working after installing Linux 7.3

hi all, After installing Linux 7.3, when I wasn't be able to FTP to this machine from another machine; however, I do get the reply back when I ping this machine. All I want is able to transfer file on my local machine to this server using FTP comand and it's not working. Could someone please... (1 Reply)
Discussion started by: lapnguyen
1 Replies

10. IP Networking

FTP or Telnet

Dumb question I'm sure but how on earth do I transfer files from a sco unix machine to my windows 2000 machine. I'm typing commands on my Win2000 machine. All I can seem to do is move files around on the unix system? (8 Replies)
Discussion started by: Timbash
8 Replies
Login or Register to Ask a Question