Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.6: Fix Samba write access from OS X to Linux servers Network
Snow Leopard only hintAfter installing the OS X Snow Leopard 10.6.3 update, I found that I could no longer write to Samba (SMB) volumes shared from my Linux server (running Ubuntu 9.10 Karmic Koala) that I had mounted on OS X.

Whenever I tried to copy a file from OS X to the mounted Samba drive, I got this error message:
The operation canít be completed because you donít have permission to access some of the items.
To solve the problem, turn off Unix extensions in your Samba server (Ubuntu 9.10 in my case) by adding the following line to smb.conf in the global settings block, and then restarting Samba:
unix extensions = no
You might also need to unmount and re-mount your Samba volumes from OS X after you make this change. More details on what caused this problem can be found in this blog post.
    •    
  • Currently 3.55 / 5
  You rated: 5 / 5 (20 votes cast)
 
[30,555 views]  

10.6: Fix Samba write access from OS X to Linux servers | 9 comments | Create New Account
Click here to return to the '10.6: Fix Samba write access from OS X to Linux servers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Fix Samba write access from OS X to Linux servers
Authored by: dewab on Apr 07, '10 08:25:41AM

What I find most interesting is that the errors only occur when using finder. If I was working with files from a shell prompt, no problems at all.



[ Reply to This | # ]
10.6: Fix Samba write access from OS X to Linux servers
Authored by: skeeks on Apr 07, '10 10:50:21AM

I found several "smb.conf" files in my Ubuntu 9.10, but I can't figure it out which one to modify. Could you just give me the path to the file?
Thank you.



[ Reply to This | # ]
10.6: Fix Samba write access from OS X to Linux servers
Authored by: jdfrankl on Apr 07, '10 10:08:16PM
I replied to skeeks by email before I saw this comment, so for anyone else with the same question the Ubuntu Samba config file is found at /etc/samba/smb.conf. In other Linux distros it is typically found either there or at /etc/smb.conf.

[ Reply to This | # ]
10.6: Fix Samba write access from OS X to Linux servers
Authored by: masc on Apr 07, '10 01:31:16PM

unix extensions have never been working with osx, especially when acls are used.

http://bugs.contribs.org/show_bug.cgi?id=4164
http://serverfault.com/questions/43977/mac-os-x-clients-cannot-see-extended-acls-through-samba-or-netatalk-on-a-debian-s



[ Reply to This | # ]
10.6: Fix Samba write access from OS X to Linux servers
Authored by: jdfrankl on Apr 07, '10 02:07:04PM

Several people have written to me to point out that there are advantages to having Unix extensions on. That's true and this should be considered a workaround rather than a fix. When (if?) Apple fixes the underlying problem you should turn Unix extensions back on in your Samba server.



[ Reply to This | # ]
10.6: Fix Samba write access from OS X to Linux servers
Authored by: Medfordite on Apr 07, '10 04:37:46PM

WOW! I was going through a lot of this when I recently set up a FreeNas box and was getting extremely frustrated with it. My solution was to manually upload everything via FTP to the server, but that did take a while.

Next time I have files to copy over, I will see if this works. Thanks for the awesome and timely tip!



[ Reply to This | # ]
10.6: Fix Samba write access from OS X to Linux servers
Authored by: cyberdave on Apr 07, '10 08:08:18PM

I hit this problem the other day after upgrading to 10.6.3.

I did a little bit of digging and discovered that it's apparently due to extended attributes on the files.

I was trying to copy some dmg images to my file server (Ubuntu 9.10, Samba 3.4.0) and it wouldn't work. If I tried to copy them via 'cp', I'd get an error about extended attributes.

I used 'xattr' on the affected files at the command line to remove all the extended attributes, and after that I was able to copy the files to my file server without a problem.

I thought maybe this hint would also fix the issue, but I didn't have a chance to test that before this hint about unix extensions came along (which works great, btw).



[ Reply to This | # ]
10.6: Fix Samba write access from OS X to Linux servers
Authored by: Helge33 on Apr 09, '10 09:29:34AM

Hmm, so you need to adapt the external machine in order to correct a bug in OSX..? not very encouraging.

I am still stucked with the "numerical passwords only" bug in SL. When connecting to my NAS (on a Linux box) I only get access if a I choose a password with numbers. Any character there will give me a "non correct password" error in OSX 10.6.3 :-(



[ Reply to This | # ]
10.6: Fix Samba write access from OS X to Linux servers
Authored by: gulabpasha on May 05, '10 04:04:20AM

Hi,

Still i'm having the same issue after adding unix extensions = no. Still i can't rename the sub directories of my shared folder.

I'm using Snow leopard 10.6.3 client and Ubuntu 9.10 Samba server.


Looking forward your support.

Thanks,
Gulab Pasha



[ Reply to This | # ]