[Samba] Permissions when MOVING files

Andrew Morgan morgan at orst.edu
Wed Oct 19 17:59:53 GMT 2005

On Wed, 19 Oct 2005, Travis Knabe wrote:

> We've got a large user base.
> They all have a home directory and within it a public_html directory. 
> Each of the directories have and need different permissions set on them.
> I've tried using ACL's, setgid bits, all the samba options, however when 
> a file is _MOVED_ from their home directory to their public_html 
> directory the permissions don't change.  Even with the different options 
> discussed above.  I imagine that if the file is moved on the same 
> filesystem, the file attributes don't change at all, its only when the 
> file has to be created, and that's why a "copy" works.  Anyone else have 
> similar issues?  If so how did you overcome?

We have two shares for each user, one for their homedir and one for their 
public_html.  Here is our share config:

         comment = Home Directories
         browseable = false
         read only = no
         create mode = 0700
         hide files = /public_html/

         comment = Web page
         read only = no
         path = %H/public_html
         create mode = 0755


More information about the samba mailing list