Protecting Folders

This is a discussion on Protecting Folders within the Linux Security forums, part of the System Security and Security Related category; I have a data driven website. Part of the website is a downloads section - all the downloads are help in ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-25-2005
StevePBurgess@gmail.com
 
Posts: n/a
Default Protecting Folders

I have a data driven website. Part of the website is a downloads
section - all the downloads are help in a folder called "downloads".
When a general user (i.e. one that doesn't have a log in) uses the site
and access the downloads page they are given a list of general
downloads. When a member who has logged in uses the site, the same page
presents the general downloads and the member only downloads.

This all works fine.

A slight hole in this security, however, is that the downloads folder
is not protected. I have moved the member downloads into a subfolder
within downloads. How can I protect this so that only people who are
logged in can access it - so that general users cannot accidentally
browse it or make a direct link to the documents within it?

Hope this makes sense.

Any ideas?

Reply With Quote
  #2 (permalink)  
Old 03-25-2005
David Dorward
 
Posts: n/a
Default Re: Protecting Folders

StevePBurgess@gmail.com wrote:

> I have a data driven website.


> A slight hole in this security, however, is that the downloads folder
> is not protected. I have moved the member downloads into a subfolder
> within downloads. How can I protect this so that only people who are
> logged in can access it


It rather depends on what method you are using to log people in. Assuming
the use of Apache, I would probably look at using mod_perl to write an
AuthHandler for that directory. If you aren't using Perl already, then
another solution might suit you better.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Reply With Quote
  #3 (permalink)  
Old 03-26-2005
StevePBurgess@gmail.com
 
Posts: n/a
Default Re: Protecting Folders

Many thanks.

user authetication is managed using PHP, cookies and username/password
information stored in a MySQL database...

Reply With Quote
  #4 (permalink)  
Old 05-22-2005
test
 
Posts: n/a
Default Re: Protecting Folders

StevePBurgess@gmail.com wrote:

> I have a data driven website. Part of the website is a downloads
> section - all the downloads are help in a folder called "downloads".
> When a general user (i.e. one that doesn't have a log in) uses the site
> and access the downloads page they are given a list of general
> downloads. When a member who has logged in uses the site, the same page
> presents the general downloads and the member only downloads.
>
> This all works fine.
>
> A slight hole in this security, however, is that the downloads folder
> is not protected. I have moved the member downloads into a subfolder
> within downloads. How can I protect this so that only people who are
> logged in can access it - so that general users cannot accidentally
> browse it or make a direct link to the documents within it?
>
> Hope this makes sense.
>
> Any ideas?
>

The simplest solutions are sometimes the best. Instead of having the log-in
download folder as a sub folder, keep it separate and have it display as a
separate directory they've got access to. The other possiblity is to swap
the positions and make the general downloads folder a sub-folder of the
log-in that shows no higher directory access from it.
--
A fatal Operating Error Has Occurred and Windows must reboot. Your ships
atmosphere has been purged for your protection during this reboot.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0