OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> ftp and logging
markb
post Mar 15 2004, 03:39 PM
Post #1





Group: Members
Posts: 54
Joined: 28-February 04
From: Birmingham, UK
Member No.: 2,080



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
# 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
$ 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
Go to the top of the page
 
+Quote Post
lardman
post Mar 16 2004, 02:04 AM
Post #2





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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
Go to the top of the page
 
+Quote Post
markb
post Mar 16 2004, 12:06 PM
Post #3





Group: Members
Posts: 54
Joined: 28-February 04
From: Birmingham, UK
Member No.: 2,080



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
Go to the top of the page
 
+Quote Post
lardman
post Mar 16 2004, 02:15 PM
Post #4





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th October 2014 - 07:36 PM