View Single Post
  #9 (permalink)  
Old 09-19-2007, 03:21 AM
birre
Newsgroup Contributor
 
Posts: n/a
Re: "safe" place to put a common "download" directory?

On 2007-09-14 10:19, Noozer wrote:
> I want to create a directory that is read/writeable by all my Linux users.
>
> What would be the 'correct' location for such a directory on a Linux system?
>
> /downloads
>
> /usr/share/downloads
>
> /var/downloads
>
> ????
>
> Thanks!
>
>


You should use a dedicated partition, since a directory like this often get
full very fast.

so, /dowmload , /files , /shared or something maybe.

If it should be safe , or at least a bit safer, mount it
with noexec options, so users cant run programs that is installed there.
If they are forced to copy it first, they must at least think a bit before
running it.

Also, set the directory sticky bit (+1000) , so they can't delete files they
don't own,if you see any need for this.

So, chmod 1777 /downloads will at least protect their files to be deleted by others

And chmod 3777 will force files/directories to be created with the same group
as the download directory has.

/bb



Reply With Quote

 
Old 09-19-2007, 03:21 AM