LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   RW access to a directory via FTP using ProFTPD (http://www.linuxquestions.org/questions/linux-software-2/rw-access-to-a-directory-via-ftp-using-proftpd-180010/)

borbzz 05-10-2004 01:40 PM

RW access to a directory via FTP using ProFTPD
 
Hello all,
I am trying to just share a directory in my filesystem with read/write access via ftp so I can use it in Dreamweaver. I have read through all the posts on ProFTPd, and I see posts on how to set up ANONYMOUS FTP and users' home directory, but that doesn't help me.

I want to serve the folder /usr/share/custom so I can FTP in as root and have read/write permssions to all files in that directory and subdirectories. I am running RedHat 9 and a simple firewall. If someone can help me set this up--whether it is through editing the directives in proftpd.conf or adding an ftp user (not sure how to do either of these), I would greatly appreciate it. Thanks a lot!

-Eric

BlandoCal 05-10-2004 02:06 PM

Using ftp you should be able to login as a user (created for your machine, ie. make a user named something like ftpuser on your machine --the one running the ftp server-- then you can log into the server using that user, it should automatically take you to that users home directory), however I believe that root has been disabled for login using ftp, probably for good reason. You could set up a user for your computer who has read/write access to the directory you want, then login as that user.

Just an idea, let me know if it works.

borbzz 05-11-2004 07:37 AM

perhaps it is a different problem
 
Hello,
I tried to do what you said and create a user "custom" with the home directory /usr/share/custom. What happens in my FTP client when I try to connect is that it just hangs there as if the server is behind a firewall and the client is being blocked. I triple checked my firewall, and I have all incoming connections allowed on ports 20 and 21. Are there any other ports I need to open up on the server's firewall, or is this not a firewall-related problem? Thanks!

-Eric

BlandoCal 05-11-2004 04:40 PM

Does it let you enter a user name? Or does it not bring up the login at all?

And also can you ftp from the server to itself, such as

ftp 127.0.0.1

does that work @ all?

borbzz 05-11-2004 10:23 PM

Solution Found
 
The problem was that it was timing out and wouldn't even connect at all. I have found a solution, and I am a moron. Turns out that in addition to a hardware firewall (Linksys router) there was a software firewall running also that I didn't account for. I opened the port on that firewall and it works like a charm. I know it is not the most secure solution, but I added an <anonymous /usr/share/custom> directive, and limited it so only root could access it. It works like a charm. I appreciate everyone's quick resonses and dilligence.

-Eric


All times are GMT -5. The time now is 03:42 PM.