FTP server questions
I'm trying to set up a ftp/http server on Red Hat 9. I was able to get the http part working fine, but I'm running into some problems with ftp. Let me tell you what I've done.
First I enabled vsftpd. I had assumed that there would be something that would allow me to set up ftp accounts, but after searching I haven't been able to find anything to configure the ftp. So I thought that maybe I had to log in via my linux account. I tried it and it worked. The problem was that the ftp home directory was my home directory. I want the ftp home to be the same as the http home, so I changed my linux home to match the http home. This works fine with two exceptions.
1. There's a desktop directory in my http/ftp directory that I don't really want there.
2. There's nothing stopping me from accessing the parent directories through ftp.
To solve the first problem I tried creating a test account without a home directory, then assigning it one afterward. I logged into ftp successfully and there was no desktop. Then I tried logging in locally (which I'd like to be able to do also) and it created the desktop directory. I thought that maybe I could just hide the directory, but I have no clue how to do that.
For problem #2 I tried denying access to the parent directory. Logged in via ftp and I wasn't able to access the parent (good). Logged in locally and everything worked (good). Then I tried to access with http and I had no access to anything (bad). I have no clue what to do about this.
Ok, so here are my questions.
1. Am I even doing this right in the first place? If not, how should I be doing it?
2. Assuming that I'm on the right track, how do I get rid of (or at least hide) the desktop directory?
2b. If hiding the directory is not the answer, how would I hide a file/directory?
3. How do I restrict ftp access without totally blocking http access?
Last edited by JesusAddict3791; 11-07-2003 at 12:01 PM.
|