Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 09-19-2007, 03:21 AM
Noozer
Newsgroup Contributor
 
Posts: n/a
"safe" place to put a common "download" directory?

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!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 09-19-2007, 03:21 AM
  #2 (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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #11 (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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #13 (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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #14 (permalink)  
Old 09-19-2007, 03:21 AM
Stuart Miller
Newsgroup Contributor
 
Posts: n/a
Re: "safe" place to put a common "download" directory?


"Noozer" <dont.spam@me.here> wrote in message
news:KurGi.168525$fJ5.81601@pd7urf1no...
>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!


There is a matter of policy here. Some users matntain that you don't mess
with the basic structure of you root directory, and that therefore all
'growable' directories should be in /var, along with logs and your basic web
& ftp servers. Some installs will copy the cd or dvd contents into a
download area on /var, and put udates in there as well

I disagree with that. I have a few partitions for the working system, one
for /home, one for /var, etc.
Then the rest of the 200 gigs is set as a common work area in its own
partition. The mount point is /server.
This way it could just as easily be a separate hard drive.

As already described, you can set user and group settings to suit your
needs. Here, there is a high degree of trust as it is all family, so we have
one big common area for music and videos, separated by various criteria. The
concept of allowing everyone read access to the downloads, but only allowing
the 'owner' to delete the file is very good. This can easily be done by
using a few subdirectories, or allowing on a file by file basis. Then
downloads that are "private" can be stored in the users /home directory.

Stuart



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #15 (permalink)  
Old 09-19-2007, 03:21 AM
Stuart Miller
Newsgroup Contributor
 
Posts: n/a
Re: "safe" place to put a common "download" directory?


"Noozer" <dont.spam@me.here> wrote in message
news:KurGi.168525$fJ5.81601@pd7urf1no...
>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!


There is a matter of policy here. Some users matntain that you don't mess
with the basic structure of you root directory, and that therefore all
'growable' directories should be in /var, along with logs and your basic web
& ftp servers. Some installs will copy the cd or dvd contents into a
download area on /var, and put udates in there as well

I disagree with that. I have a few partitions for the working system, one
for /home, one for /var, etc.
Then the rest of the 200 gigs is set as a common work area in its own
partition. The mount point is /server.
This way it could just as easily be a separate hard drive.

As already described, you can set user and group settings to suit your
needs. Here, there is a high degree of trust as it is all family, so we have
one big common area for music and videos, separated by various criteria. The
concept of allowing everyone read access to the downloads, but only allowing
the 'owner' to delete the file is very good. This can easily be done by
using a few subdirectories, or allowing on a file by file basis. Then
downloads that are "private" can be stored in the users /home directory.

Stuart



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"safe" place to put a common "download" directory? Noozer Linux 0 09-19-2007 03:21 AM
optimization of "save in" and "look in" fileds of common Open and Dmitry Windows XP 5 06-28-2007 08:50 AM
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" Tony Windows Vista 1 02-16-2007 04:31 PM
Remove "Edit", "Print", "Preview" from context menu? Mo Windows XP 8 01-04-2007 03:44 AM
Remove "Edit", "Print", "Preview" from context menu Mo Windows XP 0 01-04-2007 03:40 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 05:51 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0