Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to copy a twiki data dir (ubuntu server) via a samba share to an XP box... all files copy except for .htpasswd and .changes. Any ideas why not? Is there some service that is protecting them?

share|improve this question
What command are you using to do the copy? Do you get any errors? – Flimzy Jun 21 '11 at 20:32
drag n drop in windows, and also using Beyond Compare. Same problem with both: "access denied" I'm no pro at this, just muddling through. – Dave Jun 21 '11 at 20:35
up vote 0 down vote accepted

It may be that the file permissions are set such that the user you connect as via samba can not read them. ls -l at the Linux side will show you the ownership and rights information so you can see if there are differences between these files and the others, you may also see this in the Windows file properties dialogue (in the security tab) for each file depending on how your Samba daemon is configured.

share|improve this answer
ahh... -rw------- all others are -rw-r--r-- does that mean i would need to alter the permissions for these two files before copying them? – Dave Jun 21 '11 at 20:41
Or change the group of the file to a group that the samba user is a member of. In either case take care especially if this is a shared server as the files may be read protected for a reason (the .htaccess may contain authentication settings for instance, in which case you wouldn't want to make it readable by all users). – David Spillett Jun 21 '11 at 20:46
I think this is the closest I'll get to fixing it tonight. Thanks David and the the other posters. I'll brush up on changing permissions tomorrow, I'm confident that will fix it. It's just a dev box, for practice so no worries. :-) – Dave Jun 21 '11 at 20:47
Thanks David, it was the permissions. I changed them to allow read access for all, copied, and then changed the permission's back. – Dave Jun 26 '11 at 16:42

I copy these files off my server without any problems.

Permissions of these files might not be accessible by the samba server maybe?

share|improve this answer
I'm just doing a straight copy (drag n drop in windows), not changed any permissions. I stopped apache as I thought that might be preventing access to these files for some reason. – Dave Jun 21 '11 at 20:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.