Xref: utzoo comp.unix.sysv386:5717 comp.protocols.tcp-ip:15166 Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!milton!sumax!polari!gtisqr!stu From: stu@gtisqr.uucp (Stu Donaldson) Newsgroups: comp.unix.sysv386,comp.protocols.tcp-ip Subject: Re: Help with Anonymous FTP Summary: you need some other files in the ~ftp directory Message-ID: <1991Mar06.014609.4837@gtisqr.uucp> Date: 6 Mar 91 01:46:09 GMT References: <1991Feb21.211534.772@ulkyvx.bitnet> Sender: stu@mav.com Organization: Maverick International Inc. Lines: 56 In article <1991Feb21.211534.772@ulkyvx.bitnet> rwmira01@ulkyvx.bitnet (Rob Miracle) writes: >Problem #1, AT&T SVR3.2.2 only allows 8 character file names, thus "anonymous" >can not be created. By hand editing /etc/passwd and /etc/shadow, I added the >account as: anonymous:x:1000:100:FTP Anonymous Account: I used the account 'ftp' since it wouldn't have the problem. With this, both 'anonymous' and 'ftp' work as logins. >anonymous account and add an account called ftp. Now I can log in, but any >access other than CD barfs with a message: > >PORT 136,165,2,12,8,17 >200 PORT command okay >NLST >425 Data Socket not created [0.0.0.0,0] I had the same problem. It doesn't tell you that there are a few other files thatyou need to have in the ~ftp account. ~ftp/bin ls needed for the NLST or LIST commands in ftp to work. pwd needed to get the current working directory ~ftp/dev null tcp # needed so the socket call within ftp can work. udp # probably not needed, but I added it when I added tcp ~ftp/etc group # needed for group id to show up in the dir command. passwd # needed for login id to show up in the dir commadn. ~ftp/shlib libc_s # surprise, /bin/ls uses the shared library so this # is requried. shlib: total 54 -rwxr-xr-x 1 root other 26236 Feb 27 10:47 libc_s* >Problem #2 It seems that the CD command can get anywhere on the system. How >do I restrict it to just the tree that I want it in? ftpd will automatically do a chroot to the new directory, thus preventing you from using CD to get to directories above ~ftp. >Thanks in Advance >Rob >-- >Rob Miracle | Bitnet : RWMIRA01@ULKYVX CIS: 74216,3134 >Programmer/Analyst-II | INTERNET : rwmira01%ulkyvx.bitnet@cunyvm.cuny.edu >University of Louisville | UUCP : ...psuvax1!ulkyvx.bitnet!rwmira01 >"Revenge is a dish best served cold. It is very cold in space" > -- Ancient Klingon Proverb ----------------------------------------------------------------------- Stu Donaldson "Can't you understand what I'm saying?" stu@mav.com "What did you do, fail telepathy?"