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

On Fri, 14 Sep 2007 08:19:54 GMT,
Noozer <dont.spam@me.here> 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


If it's your system, it's your call.

'/' and '/usr/share' may be mounted readonly on some systems.
Considering the nature of the beast, I'd go with
'/{home,Users}/downloads' and 'man chmod'. Iirc, if you set the
sticky bit on the directory, User1 and User2 can both write to the
directory, but can't delete the other's files. I'm assuming '/home'
or '/Users' exist and are on a separate partition from '/var'. You
don't want to fill var's partition.

If you want to go with '/var/downloads', I'd use it as a mount pt. for
its own partition.

I'd also recommend you make it group writable and make everyone a
member of the group so you can disallow people write access if they
abuse it. (You could also use quotas, or preferably both.)

JMTC,

Michael C.
--
mjchappell@verizon.net http://mcsuper5.freeshell.org/

Reality isn't the way you wish things to be, nor the way they appear to
be, but the way they actually are. - Robert J. Ringer
Reply With Quote

 
Old 09-19-2007, 03:21 AM