samba and xcopy

Jerry Davis jdawgaz at cox.net
Tue Mar 6 20:11:02 MST 2007


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.

Jerry

-- 
Happy Trails!
Jerry
 
KE7JVW
Hobbit Name: Pimpernel Loamsdown
Registered Linux User: 275424
 
This email's random fortune: 
The very ink with which all history is written is merely fluid prejudice.
		-- Mark Twain


More information about the PLUG-discuss mailing list