Re: [S.u.S.E. Linux] Elementary ftp questions
![](https://seccdn.libravatar.org/avatar/a31fc9c368e52cab0e26446d5591f065.jpg?s=120&d=mm&r=g)
John Weekley wrote:
zentara wrote:
but I can't get to my ftp directory in /usr/local/ftp with <A HREF="ftp://192.168.0.1"><A HREF="ftp://192.168.0.1</A">ftp://192.168.0.1 I get no connection. Why?
Hi, I can't help with the samba stuff (I use NFS, no M$ here :), but maybe I can shed some light on the ftp question. First of all, you're not really being dumped into the "/" filesystem. What's happening is that due to default security you're being put into /usr/local/ftp as you want. What's going on is that there's a way of making your ftp directory be "/" for ftp users only, see man chroot. This way, anonymous FTP'ers can't get out of the /usr/local/ftp directory and wreak havoc on your system. Your ftp directory becomes the / filesystem.
As to why you can't see anything, I'll take a guess and say your file permissions don't allow anything to be seen. The docs for the wu-ftpd cover all this pretty well, especially the chroot part, and MOST IMPORTANTLY the file premissions needed to run a secure server.
John Weekley
Thanks for detailing that for me. I did sort of figure out it worked that way, by playing around with it. I came to see that to get anonymous ftp, you have to log on as "ftp" and send a blank password. If you log on as a user, you get then start ftp, you get dumped in your home directory. I see the benefit in doing it this way. What I really would like to understand is how to get into anonymous ftp via Netscape on a win95 machine connected via ethernet. I guess the question is why does the http daemon listen to my ethernet card address, but the ftp daemon dosn't ? How do I instruct the ftp daemon to listen to eth0, and put all requests into /usr/local/ftp? I read man ftpd but couldn't make alot of sense out of it. I'm trying to set up a little ethernet lan to practice web and ftp procedures. -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (1)
-
zentara@mindspring.com