LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2004, 01:40 PM   #1
borbzz
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
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
 
Old 05-10-2004, 02:06 PM   #2
BlandoCal
Member
 
Registered: Sep 2003
Location: Ames, IA
Distribution: Fedora Core 3
Posts: 92

Rep: Reputation: 15
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.
 
Old 05-11-2004, 07:37 AM   #3
borbzz
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 05-11-2004, 04:40 PM   #4
BlandoCal
Member
 
Registered: Sep 2003
Location: Ames, IA
Distribution: Fedora Core 3
Posts: 92

Rep: Reputation: 15
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?

Last edited by BlandoCal; 05-11-2004 at 04:42 PM.
 
Old 05-11-2004, 10:23 PM   #5
borbzz
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory Access in proftpd kruserm Linux - Software 4 01-04-2005 08:09 AM
Anonymous access ftp using Proftpd mkabia Linux - Networking 2 12-11-2004 04:18 AM
Proftpd, Anonymous Access, Directory Authentication bskouby Linux - Newbie 0 03-23-2004 03:08 PM
Guy got root directory access from my FTP server... how can I fix this? bripage Linux - General 16 10-02-2002 10:12 AM
FTP exclusive directory access allancondino Linux - General 3 05-02-2002 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration