LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-02-2009, 01:36 AM   #1
anandkj
LQ Newbie
 
Registered: Jul 2007
Posts: 18

Rep: Reputation: 0
Pure-ftpd - how to disallow download and allow only upload.


Hi all,

I have successfully configured pure-ftpd with mysql authentication on a Centos machine and I am able to login without any troubles to the server via ftp.

Actual problem:

I want to configure a user account "ftpuser" who *can* upload but he should *not* be able to download anything from the server.

Download/upload works fine if I give 777 permission for the user's chrooted home directory. However, I am unable to prevent downloading while uploading is still allowed. Upon setting 311 permission for the user's chrooted home directory, I was able to do just the opposite of what I wanted; that is: I can download(though I cannot "ls" any files) but I cannot upload anything. Upload returns the following error:

---------------------------------------------------
ftp> put readme.pdf
local: readme.pdf remote: readme.pdf
227 Entering Passive Mode (207,154,201,2,25,70)
553 Rename/move failure: Permission denied
ftp>
---------------------------------------------------

At present the chrooted home directory for "ftpuser" looks like this:

# ls -ld ftpuser
d-wx--x--x 2 root root 4096 Apr 2 02:17 ftpuser


Googled around for quite some time, but I could not find any appropriate solution for this. Please post your thoughts on this.

Thanks in advance.

Kind regards,
Anand
 
Old 04-02-2009, 05:03 AM   #2
anandkj
LQ Newbie
 
Registered: Jul 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Anybody? Please help!
 
  


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
pure-ftpd-mysql activates pure-ftpd zvikamer Linux - Software 2 03-01-2008 01:11 PM
Pure-ftpd closes connection after 10 minutes of upload steelliberty Linux - Networking 2 07-23-2007 09:48 AM
Pure-Ftpd olva Red Hat 0 05-12-2006 08:01 AM
pure-ftpd help hongman Linux - Software 16 04-06-2005 12:18 PM
Pure-ftpd help ksgill Linux - Newbie 15 04-18-2003 01:24 AM

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

All times are GMT -5. The time now is 12:59 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