LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2012, 01:05 PM   #1
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Rep: Reputation: Disabled
How to make FTP with read only


Hello,

I just created FTP user and now he also want a third party just have ability to read only with a share directory.
IE: ftp.xxx.com/wemade/images

So when this user send this url to a third party, all they can do it download and read only without asking un/pw and to edit.

Could someone tell me what need to be configure on the FTP server and what commands I should use.

Thanks,
 
Old 06-18-2012, 01:35 PM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
If I understand your question it seems to me that you need a simple public FTP with public access (no user - no password).
Am I right?
 
Old 06-18-2012, 01:45 PM   #3
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
That's corrected. Just download no edit or modify. Let me explain one more time so hope don't confuse you

Just say I just create a FTP user John. Now he can login into FTP server and create a directory as below

/wemade/images.

And then after he done with that, he send this url to a third party and he just want that party able to download to see what in there, no edit.

Here is a URL: ftp.xxx.com/wemade/images

Can you tell me what commands I should configure on the FTP server?

Thanks,
 
Old 06-18-2012, 01:48 PM   #4
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
First of all it's needed to know which distro is running on the ftp server and which ftp daemon is in use.
Every ftp daemon has his own configuration, but generally I'd suggest to use the preconfigured public dir to espose the public content to the world.
 
Old 06-18-2012, 01:50 PM   #5
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
can you tell me how can I find out what ftp service is running on our server?
 
Old 06-18-2012, 01:57 PM   #6
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
There are so many ftp server daemons, but the most used are ProFTPd, VsFTPd.
You can see which is running by the command
Code:
ps -e | grep ftp
 
Old 06-18-2012, 02:01 PM   #7
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
It looks like our FTP server is running proftpd. Can you tell me what commands need to configure on the server in order to complete this request?
 
Old 06-18-2012, 02:04 PM   #8
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
ProFTPd can be configured by its configuration file.
You can find a guide on how to configure ProFTPd here.
But let's say you customer need to upload file via ftp: he needs a ftp admin username and password to do this.
Is this your case?
 
Old 06-18-2012, 02:07 PM   #9
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
The user has been setup with un/pw. He can login ftp server and create directory.

But how can I configure when a third party want to open the url "above" without asking username and password or delete or edit.
 
Old 06-18-2012, 02:19 PM   #10
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Let's say you have a root directory such as /var/ftp and let's say you user can access this directory with his un/pw.
Let's even say that you user create another directory.
You can use this new directory as the HOME of anonymous users and chmod to make everyone able only to read and not to write. The Anonymous user has to be "jailed", "confined" in this directory so that he cannot reach upper levels.
Now it's needed to know HOW you added a user to the ftp server so that we can figure out what's next step.

Last edited by Slackyman; 06-18-2012 at 02:21 PM.
 
  


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
FTP Server and edquota to make ftp users deepak.inss Linux - Newbie 2 01-08-2010 06:24 AM
Read a text file and ftp files using bash w/out leaving the ftp prompt dj_tyr Linux - Newbie 6 10-12-2009 06:46 PM
USB HardDrive mounts read-only. Is there anyway to make it read-write? Fritz_Katz Linux - Hardware 7 09-13-2007 06:50 PM
how do I make a read-only file NOT read-only? robster Linux - General 1 02-17-2004 09:11 PM
Can I make a Cron job to synch/transfer a file from a folder to another FTP?... read efishta Linux - General 6 07-19-2003 10:03 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration