Article View: uk.comp.os.linux
Article #491Re: Anonymous ftp uploading problem - RH6
From: Steve Houseman
Date: Sat, 07 Aug 1999 00:00
Date: Sat, 07 Aug 1999 00:00
39 lines
2300 bytes
2300 bytes
Simon Child <simon@child.demon.co.uk> wrote ....
> Good suggestion. If I su - ftp then cd to pub/incoming I can create
> a file with vi, so that suggests that permissions are OK?
yup - perms must be ok (famous last words :-) ).
Had not tried to strace an inet daemon before - fun eh?
Obviously some things are different on your system from mine,
as tracing did not work at all with the format you had in inetd.conf.
I was on the verge of giving up on this but I found that eliminating
the tcpd (takes no part after initial check) and putting the strace in
a script allowed a trace to happen ....eg
ls -ald /usr/local/bin/ftpdtrace
-rwxr-xr-x 1 root root 83 Aug 7 00:24 /usr/local/bin/ftpdtrace
cat /usr/local/bin/ftpdtrace
#!/bin/bash
/usr/bin/strace -o/tmp/dbin /usr/sbin/wu.ftpd -l -a
I dont have in.ftpd only wu.ftpd (no idea what difference is)
(Worth just checking that this runs manually ie /usr/local/bin/ftpdtrace ,
- trace should exist and show a failure due to not a socket.)
/etc/inetd/conf has a line now like .....
ftp stream tcp nowait root /usr/local/bin/ftpdtrace
This format seemed to work ie ran as normal and got a trace out,
though may not work on yours ?.
Hope this works on yours AND that something useful comes of it :-)
Cheers,
Steve Houseman
--
currently steve.houseman at virgin net
Technical Details
Message-ID:
<fcsfo7.po.ln@rockhopper.woolacombe.lnx>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn7qeqhh.32u.simon@child.demon.co.uk> <vdedo7.6j.ln@rockhopper.woolacombe.lnx> <934033078.1203241304@192.168.1.1>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac57,46703e0382dc6a78 X-Google-Attributes: gidfac57,public X-Google-Thread: 10d8ad,46703e0382dc6a78 X-Google-Attributes: gid10d8ad,public From: steve@rockhopper.woolacombe.lnx (Steve Houseman) Subject: Re: Anonymous ftp uploading problem - RH6 Date: 1999/08/07 Message-ID: <fcsfo7.po.ln@rockhopper.woolacombe.lnx> X-Deja-AN: 510038884 References: <slrn7qeqhh.32u.simon@child.demon.co.uk> <vdedo7.6j.ln@rockhopper.woolacombe.lnx> <934033078.1203241304@192.168.1.1> X-Complaints-To: abuse@virgin.net X-Trace: nclient15-gui.server.virgin.net 934058318 5996 212.250.194.35 (7 Aug 1999 20:38:38 GMT) Organization: some day. NNTP-Posting-Date: 7 Aug 1999 20:38:38 GMT Newsgroups: uk.comp.os.linux,demon.tech.unix