🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: uk.comp.os.linux
Article #496

Re: Anonymous ftp uploading problem - RH6

#496
From: Simon Child
Date: Sun, 08 Aug 1999 00:00
66 lines
3675 bytes
On Sat, 07 Aug 1999, Steve Houseman wrote:

>Had not tried to strace an inet daemon before - fun eh? 

Never heard of strace before <g>.

>This format seemed to work ie ran as normal and got a trace out, 
>though may not work on yours ?.

Didn't work for me - I got the same as I said before. However the man page gave
me an idea, and it worked.

Open two consoles, in one run top and in the other ftp localhost. Spot the pid
of in.ftpd and do

strace -p[pid of in.ftpd] -o/tmp/tracelog

I got error messages similar to before but a log was recorded and I was able to
log in, cd /pub/incoming, download a file, and then attempt an upload of a file
called dbin. Same error message as before, and the (apparently) relevant part of
the log from strace showed as below. Does it make any sense to you? 

time(NULL)                              = 934141318
stat("/etc/shutmsg", 0xbfffdfcc)        = -1 ENOENT (No such file or directory)
read(0, "STOR dbin\r\n", 1024)          = 11
alarm(0)                                = 900
time(NULL)                              = 934141318
open(".", O_RDONLY)                     = 6
lstat("dbin", 0xbfff95ac)               = -1 ENOENT (No such file or directory)
connect(-1073764696, {...}, 1075031232) = 14
fchdir(6)                               = 0
close(6)                                = 0
stat("dbin", 0xbfffb664)                = -1 ENOENT (No such file or directory)
open(".", O_RDONLY)                     = 6
lstat(".", {st_mode=0, st_size=0, ...}) = 0
chdir(".")                              = 0
connect(-1073764704, {...}, 1075031232) = 14
fchdir(6)                               = 0
close(6)                                = 0
open(".", O_RDONLY)                     = 6
chdir("/")                              = 0
connect(-1073782292, {...}, 1075031232) = 2
fchdir(6)                               = 0
close(6)                                = 0
open(".", O_RDONLY)                     = 6
chdir("/")                              = 0
connect(-1073772896, {...}, 1075031232) = 2
fchdir(6)                               = 0
close(6)                                = 0
write(1, "553 dbin: Permission denied on s"..., 49) = 49
SYS_174(0xe, 0xbfffe6bc, 0xbfffe630, 0x8, 0xe) = 0
alarm(900)                              = 0
time([934141318])                       = 934141318
time(NULL)                              = 934141318
stat("/etc/shutmsg", 0xbfffdfcc)        = -1 ENOENT (No such file or directory) 

This is on a fresh install of RH6.0 with errata upgrades applied:

[root@compaq /tmp]# uname -r
2.2.5-22
[root@compaq /tmp]# rpm -qf /usr/sbin/in.ftpd
wu-ftpd-2.5.0-2
[root@compaq /tmp]#        

-- 
Simon Child
Technical Details
Message-ID: <934142796.571380582@192.168.1.1>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn7qeqhh.32u.simon@child.demon.co.uk> <vdedo7.6j.ln@rockhopper.woolacombe.lnx> <934033078.1203241304@192.168.1.1> <fcsfo7.po.ln@rockhopper.woolacombe.lnx>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d8ad,46703e0382dc6a78
X-Google-Attributes: gid10d8ad,public
X-Google-Thread: fac57,46703e0382dc6a78
X-Google-Attributes: gidfac57,public
From: Simon Child <simon@child.demon.co.uk>
Subject: Re: Anonymous ftp uploading problem - RH6
Date: 1999/08/08
Message-ID: <934142796.571380582@192.168.1.1>
X-Deja-AN: 510346847
Content-Transfer-Encoding: 8bit
X-NNTP-Posting-Host: child.demon.co.uk:158.152.51.6
References: <slrn7qeqhh.32u.simon@child.demon.co.uk> <vdedo7.6j.ln@rockhopper.woolacombe.lnx> <934033078.1203241304@192.168.1.1> <fcsfo7.po.ln@rockhopper.woolacombe.lnx>
Followup-To: uk.comp.os.linux,demon.tech.unix
Content-Type: text/plain; charset="us-ascii"
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 934143027 nnrp-03:13894 NO-IDENT child.demon.co.uk:158.152.51.6
Organization: -
Mime-Version: 1.0
Newsgroups: uk.comp.os.linux,demon.tech.unix