what/who is the owner of a shared directory in Samba, on a network that requires every one to access the directory, when created as root with 0777 it seems to revert back to root ownership and you can't write or delete from it. Relativily new at this, so would appreciate any help. Thanks Wes
This is what I have for a directory I want everybody to access: [experimental] comment = Directorio de experiencias browseable = yes writable = yes path = /home/exper public = yes force user = exper I created a share "experimental". Then I created a user "exper". Then in the share you put that "force share", so the only user you will write will be exper. In another way, when somebody connects to experimental then the user turns out to be "exper" for reading and for writing. If you want that folder not to be writable just put writable to no. You first must create the folder "/home/exper" from the user exper, in this example. Cheers ----- Original Message ----- From: "Wes Wilcox" <ozwes007@hotmail.com> To: <samba@lists.samba.org> Sent: Sunday, January 18, 2004 2:07 PM Subject: [Samba] shared folders ownership what/who is the owner of a shared directory in Samba, on a network that requires every one to access the directory, when created as root with 0777 it seems to revert back to root ownership and you can't write or delete from it. Relativily new at this, so would appreciate any help. Thanks Wes -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
If everyone should have access to the directory, the best way is to put everyone into a group (if they're not already - eg if you're running RedHat), say for example 'users', then set the directory's group ownership to "users", the permissions of the directory to something like 775 (or 770), and then in the share definition something like: force group = users create directory mode = 770 create mode = 660 which will make sure all files and directories created inside that directory have group read/write permissions and belong to the correct group. You may also need to set up a group mapping (net groupmap unixgroup=users ntgroup="Users") If it's a subdirectory of a share, in which only the subdirectory needs write permissions for everybody, then you'll need to mess about with permissions - I *think* setting something like 2770 on the directory makes all files created in that directory belong to the same group as the directory, but I'm not an expert when it comes to that. HTH edd On Sunday 18 Jan 2004 1:07 pm, Wes Wilcox wrote:> what/who is the owner of a shared directory in Samba, on a network that > requires every one to access the directory, when created as root with 0777 > it seems to revert back to root ownership and you can't write or delete > from it. Relativily new at this, so would appreciate any help. > Thanks > Wes-- Edd Payne IT Co-ordinator University of London Union Malet Street, London WC1E 7HY tel: 020 7664 2060 fax: 020 7436 4604