Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Why do all files from a SMB share mounted on OSX are locked, generating Opearation not permiteted on some commands?

I have a Windows 7 x64 machine is providing a share.

The OS X 10.6 machine has mounted this share into /Volumes/share. I tested and I can add, delete and modify files from it using Finder or Midnight Commander.

Still, from some tools are failing to run giving errors like Operation not permitted.

The cause is the locked flag. I found that find /Volumes/share -flags uchg.

It seams the all the files that were modified from the OS X to get this flag by default.

Why is this happening (it shouldn't) and how to solve the problem? (probably requires modification of /etc/smb.conf)

share|improve this question

1 Answer

I found a solution at http://www.stanford.edu/group/macosxsig/blog/2010/01/snow_leopard_samba_and_nt_acl.html

This feature/bug is specific to Snow Leopard - OS X 10.6.

Modify /etc/smb.conf and add

[global]
acl check permissions = no
nt acl support = no

Do not forget to restart samba, or reboot after this.

To detect all locked files run:

find /path -flags uchg

To remove all locks from existing files run:

chflags -R nouchg /path/
share|improve this answer

Your Answer

 
discard

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.