LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-05-2003, 01:41 AM   #1
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
File permission


I have an FTP server and I want to allow users to be able to view the contents of a dir but not be able to download. How do I do that? Basically I am looking for the same functionality there is in M$ information services. I hate M$, but I need to be able to do this in Linux.
 
Old 05-05-2003, 01:56 AM   #2
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
As a follow up, my server is a RH9 server running vsftpd.
 
Old 05-05-2003, 02:04 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
I don't think this is possible as you have to give them read access which from an FTP server, if that's the only permission available you can still download the file. Which is basically the whole reasoning behind what FTP functions as, to download and upload files.

Though, you could always just make a mock directory for them to view, where you have a list of all the filenames but yet they're all just 0 bytes in size.. so anyone downloading them will get nothing from them.

But I'm unsure really bout the no download though, never seen that invoked before on an FTP server.
 
Old 05-05-2003, 02:16 AM   #4
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
Unless I am absolutely crazy, I did this on my old Windoze server. I went into the advanced permissions in the dir and enabled such features like the one I am wanting to do above.
 
Old 05-05-2003, 02:18 AM   #5
shadowbird
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat
Posts: 27

Rep: Reputation: 15
Is there a reason that you have to use the FTP server to do this? There's a couple of other ways that is, perhaps, easier depending on the environment.

For example, it's relatively easy to write a shell script to generate an HTML file to be served up from a web server. Attach that shell script to a CRON job running once per day (or once per hour, etc.).

Alternatively, you can write a dynamic page in PHP, Perl, JSP, Java, etc. and have them served up by the appropriate server type (for example, Apache for PHP or Perl, Tomcat for JSP or Java Servlets, etc.).
 
Old 05-05-2003, 09:38 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by mrsolo
Unless I am absolutely crazy, I did this on my old Windoze server. I went into the advanced permissions in the dir and enabled such features like the one I am wanting to do above.
And that is probably a feature on the Windows platform you were dealing with. If were talking about Linux, then like I said, I don't know of any way to have someone FTP into your server and have the ability to view files with read access but not to download.. unless you just totally disable the get or whatever command is used in the FTP program to download.
 
  


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
About the file permission ust Linux - Distributions 1 05-06-2005 04:05 AM
File Permission gardenair Linux - Newbie 5 04-28-2005 11:35 PM
file permission Nechos Linux - Software 2 10-04-2003 04:31 PM
file permission !!! hitesh_linux Linux - General 5 03-25-2003 01:27 PM
File Permission glock19 Linux - General 4 01-02-2002 08:40 PM


All times are GMT -5. The time now is 02:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration