Author Topic: ftp and logging  (Read 3228 times)

markb

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://
ftp and logging
« on: March 15, 2004, 06:39:14 pm »
I have a problem ftp-ing into my c860 from my PC.
I\'ve edited /etc/inetd.conf and uncommented the lines for telnet and ftp. (And did \"killall -HUP inetd\")
I can now telnet into my c860 over a usb connection, but I can\'t get ftp to work.

Code: [Select]
# These are standard services.

#

### With tcpd (TCP Wrapper) ###

ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd -l -a

telnet  stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd

### Without tcpd (TCP Wrapper) ###

#ftp    stream  tcp     nowait  root    /usr/sbin/in.ftpd -l -a

#telnet stream  tcp     nowait  root    /usr/sbin/in.telnetd

If I do \"netstat -a\" on my Z I can see that it\'s listening on the ftp port.


Code: [Select]
$ netstat -a | more

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address           Foreign Address         State

tcp        0      0 *:4992                  *:*                     LISTEN

tcp        0      0 *:netbios-ssn           *:*                     LISTEN

tcp        0      0 *:sunrpc                *:*                     LISTEN

tcp        0      0 *:4244                  *:*                     LISTEN

tcp        0      0 *:ftp                   *:*                     LISTEN

tcp        0      0 *:telnet                *:*                     LISTEN


Even if I try it locally it still won\'t work.
In the console on the Z, I tried \"ftp localhost\". It then says

Quote
Connected to localhost.localdomain
421 service not available, remote server has closed connection
I\'ve tried it logged in as \"root\" as well as \"zaurus\", just in case it makes a difference.

I\'ve spent the last hour or so looking through the forum and using google, but I haven\'t had any luck.

I don\'t know how relevant this is but I noticed that in /usr/sbin on the Z I have a in.telnetd file, but don\'t have a in.ftpd file anywhere.

Any help would be greatly appreciated!

I\'d like to be able to diagnose the fault myself by looking through the logs. But I don\'t get any.

Does anyone know how I can turn on logging so I get /var/log/messages?

I know this has been mentioned in the forum already. Sorry for asking again, but I couldn\'t find the post where it was mentioned.

Thanks in advance.

- Mark

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
ftp and logging
« Reply #1 on: March 16, 2004, 05:04:59 am »
Check that the ftp binary actually exists. Although the port is open this may be handled by inetd (I don\'t know how it works) and then anything coming in should be passed on.

The Sharp ROMs for the sl5500 never had the ftp program on board so it may be the same for the c860.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

markb

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://
ftp and logging
« Reply #2 on: March 16, 2004, 03:06:31 pm »
Thanks lardman.
I think that\'s my problem.
The missing in.ftpd file means I just don\'t have an ftp server installed.
I shall go and find one.

I think I\'ve sorted out my logging problem.
I\'ve edited /etc/syslog.conf and uncommented the relevant line.
Then I started the syslog daemon /sbin/syslogd

After that I get the /var/log/messages file

Now I know how to do it I can just turn it on when I need to investigate a problem.

- Mark

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
ftp and logging
« Reply #3 on: March 16, 2004, 05:15:06 pm »
There\'s also a switch which you can give syslogd to make it write to a circular memory buffer, then use logread to read it.

It works on OZ at least, and might on your machine too, see what syslogd --help says.

Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva