|
| |||
| "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! |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| 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? |