Article View: aus.computers.linux
Article #60055Re: Shadow and Ftp.
From: Stanley Chan
Date: Tue, 16 Aug 1994 03:43
Date: Tue, 16 Aug 1994 03:43
23 lines
2130 bytes
2130 bytes
Richard Helliwell (rick@knights.anu.edu.au) wrote:
: I have recently installed shadow, however ftp no longer appears to
: work. At the ftp prompt it will ask a user for a password and then reject
: any entries. Also root can now ftp to the machine (the only user who can)
: despite having an entry in /etc/ftpusers to stop this. I was wondering if
: anybody has encountered this problem and how I can go about fixing it....
Sounds like the same problem I got a while ago. I traced it back to
the source. My problem was due to the fact that after the password is input
to the program, it only checks it with the entry in the passord file
with "strcmp" which needs a null to terminate the comparison that sometimes
is not there due to the dunamic nwture of the system.
I modified it to "strncmp" and put the length as len(passwd) and rrecompiled
the program and it worked fine since then.
May be you can find the source to your ftpd program and check for this
error.
--
Stanley Chan (System Administrator)
E-mail schan@gcau.com.au (Ph 61-7-8771016 Fax 61-7-8771120)
Snail Golden Casket Art Union Office
Locked Bag 7, Coorparoo DC QLD Australia 4151
Technical Details
Message-ID:
<1994Aug16.034347.2277@gcau.com.au>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!CS.Arizona.EDU!math.arizona.edu!news.Arizona.EDU!news.Cerritos.edu!nic-nac.CSU.net!charnel.ecst.csuchico.edu!psgrain!quagga.ru.ac.za!munnari.oz.au!yarrina.connect.com.au!warrane.connect.com.au!mailgate!schanReferences:
<32nc9b$rk3@manuel.anu.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100df9,b6de2cf7d3ae69d0 X-Google-Attributes: gid100df9,public X-Google-Thread: 102983,b6de2cf7d3ae69d0 X-Google-Attributes: gid102983,public X-Google-ArrivalTime: 1994-08-16 02:12:47 PST Newsgroups: aus.computers.linux,comp.os.linux.admin Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!uunet!CS.Arizona.EDU!math.arizona.edu!news.Arizona.EDU!news.Cerritos.edu!nic-nac.CSU.net!charnel.ecst.csuchico.edu!psgrain!quagga.ru.ac.za!munnari.oz.au!yarrina.connect.com.au!warrane.connect.com.au!mailgate!schan From: schan@gcau.com.au (Stanley Chan) Subject: Re: Shadow and Ftp. Message-ID: <1994Aug16.034347.2277@gcau.com.au> Nntp-Posting-Host: dev Sender: usenet@gcau.com.au (news poster) Organization: GCAU Date: Tue, 16 Aug 1994 03:43:47 GMT References: <32nc9b$rk3@manuel.anu.edu.au> X-Newsreader: TIN [version 1.2 PL2] Followup-To: aus.computers.linux,comp.os.linux.admin Lines: 25