[Samba] Permissions when MOVING files

Travis Knabe knabet at wou.edu
Wed Oct 19 21:53:49 GMT 2005


Well I was hoping to get away from having to have each user have 2 shares, but this is what we've resolved to.  Your implementation is quite nice, and we've copied that.  Thanks for the response.

-Travis

On Wed, 2005-10-19 at 10:59, Andrew Morgan wrote:
> 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:
> 
> [homes]
>          comment = Home Directories
>          browseable = false
>          read only = no
>          create mode = 0700
>          hide files = /public_html/
> 
> [public_html]
>          comment = Web page
>          read only = no
>          path = %H/public_html
>          create mode = 0755
> 
> 
> 
>  	Andy



Travis Knabe 
Assistant Director
Computing Services
Western Oregon University
(503) 838-8507



More information about the samba mailing list