Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 connecting from Windows 7 to Ubuntu Server 10.04 using samba. I can create new files in the share, delete those files, but if I try to edit a file, and then save it, I get an access denied. My User in Windows is the same as the one I'm connecting as and as setup in Ubuntu. This is very odd. I also have trouble copying files to Ubuntu as well. It errors but lets me copy them anyway.

share|improve this question
Can you post your smb.conf? – David Jun 7 '10 at 17:03

Creating and deleting files is controlled by permissions on the directory. Modifying the file is controlled by permissions on the file. You may have a mask which is removing the write privilege from the file.

share|improve this answer

Can you add/modify/delete files in Linux? If not, then your problem is with Linux file permissions. Once you can do everything at the Linux level, then try Samba. If you still cannot edit the file, then it's a Samba permissions. Check out the file and directory masks. Are you specifying valid users/groups?

share|improve this answer

You could try modifying the directory and file permission using

chmod -R 775 /path/to/folder

I've done this with selected directories in my file server and it worked.

Note that there are consequences in making files/folders "world-writable"

You can also create groups per shared folder and chown each folder per group

share|improve this answer

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.