Re: samba and xcopy

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: Main PLUG discussion list
Subject: Re: samba and xcopy
On Tue, 2007-03-06 at 20:11 -0700, Jerry Davis wrote:
> On Tuesday 06 March 2007 11:10, Craig White wrote:
> > On Mon, 2007-03-05 at 17:36 -0700, Jerry Davis wrote:
> > > we have a file share on linux at work.
> > >
> > > in the smb.conf file I have a share called data
> > > In the [data] section, I have force group = g1, and force user = u1
> > > in the /data partition I have the owner set to u1 and group to u2
> > >
> > > from windows:
> > >     I can do a mkdir and it works
> > >     I can copy a file into that dir and it works

> > >
> > >     BUT, when I use xcopy to copy a bunch of directory/files recursively it
> > >     gives me an access violation.

> >
> > ----
> > I'm not in front of a Windows system but I have done this I'm sure and
> > don't recall any issues other than permissions problems - which is
> > probably the issue you are facing.
> >
> > I often use setgid on Samba shared directories so new folders inherit
> > the group and sometimes use the umask options in samba to set the umasks
> > of created files/folders, of course depending upon the needs.
> >
> > Your question is a bit vague to answer with any certainty.
>
> it was kinda vague, because I was at home, trying to remember most of what I
> did at work.
>
> it turns out that we were using the xcopy /O switch which tries to preserve
> ACL's. I tried the "force unknown acl user = yes" parameter, but it didn't
> work either. so for now, we just took out the /O switch in all our scheduled
> tasks.
>
> If anyone knows what CAN work with /O switch let me know.

----
You might want to enable extended acl's on the underlying filesystem
(ext3 ?)

Anyway, the official samba documentation on file/folder access control,
etc. is here...

http://samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessControls.html

Craig

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss