<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Rob -<br>
<br>
I assume this is where I need to list all users and set the permissions
as specified.  Also, I do not find an entry for "directory mask".<br>
<br>
# The following two entries demonstrate how to share a directory so
that two<br>
# users can place files there that will be owned by the specific users.
In this<br>
# setup, the directory should be writable by both users and should have
the<br>
# sticky bit set on it to prevent abuse. Obviously this could be
extended to<br>
# as many users as required.<br>
;[myshare]<br>
;   comment = Mary's and Fred's stuff<br>
;   path = /usr/somewhere/shared<br>
;   valid users = mary fred<br>
;   public = no<br>
;   writable = yes<br>
;   printable = no<br>
;   create mask = 0765<br>
<br>
Todd<br>
<br>
On 7/12/2010 8:01 AM, Rob Kampen wrote:
<blockquote cite="mid:4C3B2E4A.4040505@kampensonline.com" type="cite">Todd
Cary wrote:
  <br>
  <blockquote type="cite">A problem that has plagued me for a long time
(finally decided to get some expert help) is setting the owner/group on
directories/files I create with samba.  Here is my situation:
    <br>
    <br>
On my Linux/Apache I have a user, smith.  The /home/smith directory is
owned by smith and is part of the group, todd (me) with permissions
775.
    <br>
    <br>
This works fine until I create via samba a directory in smith e.g.
/home/smith/test.  The directory is owned by todd and smith cannot
create a file in it.
    <br>
    <br>
What have I missed and how do I fix it?
    <br>
    <br>
Todd
    <br>
    <br>
P.S. My admin expertise is just moderate since my Linux server just
runs and runs without much administration needed.
    <br>
    <br>
  </blockquote>
Todd,
  <br>
You did not provide a copy of your smb.conf
  <br>
you may want to check
  <br>
directory mask = 0775
  <br>
create mask = 0664
  <br>
in the global section or in the particular [homes] section as you see
fit.
  <br>
another way is to use the sticky bit under unix file permissions
  <br>
ie
  <br>
chmod g+s /home/smith
  <br>
HTH
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
CentOS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="65">-- 
Ariste Software
Petaluma, CA 94952

<a class="moz-txt-link-freetext" href="http://www.aristesoftware.com">http://www.aristesoftware.com</a>
</pre>
</body>
</html>