OK, I think that my previous problems were due to /home/ricardo not having the correct permissions. What is the easiest way to set up a shared dir on a linux box? where should I put it... in /home/ or /usr/share/ . If I want it available for all users to read/write to, what permissions do I need? They shouldn't need to execute programs from it, but must be able to play .avi and .mp3s from it.
This dir should be available to local users running linux, as well as Windoze users over the network.
TIA Ricardo
Put it wherever you please. Its mode will have to be at least 555. Its Samba permissions will have to be at least 'public=yes', and possibly 'writable=yes', but then you will need mode 777 or 1777.
On 20-Nov-2002 Ricardo Campos wrote:
OK, I think that my previous problems were due to /home/ricardo not having the correct permissions. What is the easiest way to set up a shared dir on a linux box? where should I put it... in /home/ or /usr/share/ . If I want it available for all users to read/write to, what permissions do I need? They shouldn't need to execute programs from it, but must be able to play .avi and .mp3s from it.
This dir should be available to local users running linux, as well as Windoze users over the network.
Raphael Mankin raph@panache.demon.co.uk wrote:
Put it wherever you please. [...]
Please don't. http://www.pathname.com/fhs/
Please trim and reply below.
Thanks,
MJR
On 21-Nov-2002 MJ Ray wrote:
Raphael Mankin raph@panache.demon.co.uk wrote:
Put it wherever you please. [...]
Please don't. http://www.pathname.com/fhs/
This is a very useful reference, but it really only talks about standard system files and directories, not about user areas.
on Thu, Nov 21, 2002 at 08:59:23AM -0000, Ricardo Campos wrote:
but then you will need mode 777 or 1777.
None of my books explain the difference between 0777 and 1777. What's the significance of the 1?
it's the sticky bit. under modern unices, when this bit is applied to a directory, it has a special meaning.
from sticky(8): STICKY DIRECTORIES A directory whose `sticky bit' is set becomes an append-only directory, or, more accurately, a directory in which the deletion of files is re- stricted. A file in a sticky directory may only be removed or renamed by a user if the user has write permission for the directory and the user is the owner of the file, the owner of the directory, or the super-user. This feature is usefully applied to directories such as /tmp which must be publicly writable but should deny users the license to arbitrarily delete or rename each others' files.
applied to files, it indicates which executable files are shareable and causes parts of the text segment to be stored in swap when needed. this is now the default, so its usage in this context is pretty much redundant.
generally, when you make a directory world-writable, you want it sticky too. you may also want to look at the use of a setgid directory under linux, as this forces the group ownership of files to the group of the directory. (or did last time i tried.)
the 1000 bit is the sticky bit. With mode 1777 anyone can create fiels in the directory,but only the owner can delete them. Mode 1777 is usually used on /tmp and /var/tmp.
On 21-Nov-2002 Ricardo Campos wrote:
but then you will need mode 777 or 1777.
None of my books explain the difference between 0777 and 1777. What's the significance of the 1?
Ricardo
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!