[Samba] Debian + Samba 3.0 + Mac OS X 10.[2-3] -> insufficient privileges

Philip Edelbrock phil at edgedesign.us
Wed Dec 10 22:08:13 GMT 2003


Ah, yeah, it's the .DS_Store files that are causing the trouble for 
you.  They get written when copying folders to the server, so if you 
veto them you get that odd error in OS-X.  Curiously, you can delete 
those files later w/o hurting things (I think you lose any file 
comments), but you can't veto them.

I noticed that you also reference files created from Netatalk 
(:2eDS_Store, .AppleDouble, etc.).  Be careful with using Netatalk with 
Samba.  You'll end up with files with two (but independant) resource 
forks as well as incompatible file namings.  That can spell disaster 
when you try to have OS-X (via SMB) and OS-9 (via AFP) clients working 
on the same files.

Take a look at the Baltra patch for Netatalk (http://www.baltra.org) it 
was written specificly to use Netatalk and Samba together in a mixed 
environment with OS-9 and OS-X clients (as well as Windows and other 
Unix machines).

The relevent part of my smb.conf looks like this:

unix charset = UTF8
unicode = yes
dos charset = ASCII
encrypt passwords = yes
veto files = /Temporary Items/Network Trash 
Folder/TheFindByContentFolder/TheVolumeSettingsFolder/
delete veto files = yes

I don't have an explicit parameter for 'hide dot files' and it looks 
like that setting is 'yes' by default, so I guess I am hiding them.  
That makes sense since they don't show up on Windows or Mac clients, but 
they are accessable.  I used 'dos charset = ASCII' to prevent OS-X from 
copying files with some bad chars (like ? and /) to the server.  Make 
sure you have people use some sane naming on their files or else they 
may get some error when trying to name or copy files on the server.

My Samba, btw, is running tandom with Netatalk-1.6.4-Baltra.

Good luck!


Phil

Deim Agoston wrote:

>Philip Edelbrock <phil at edgedesign.us> irta:
>  
>
>>I've had some luck with OS-X and Samba 3.x.  What you are probably 
>>running into is the file server blocking either the .DS_Store files 
>>(OS-X tries to put one in each directory) or the resource forks of files 
>>(._filename).  You will get these strange privilege errors in these 
>>cases.  Does this ring any bells?
>>    
>>
>Aye, I'm vetoing the files .DS_Store, 2DS_Store, .AppleDouble etc.
>Hmm. I've have a good chance that if it works the users will start to
>complain that they don't want to see that files. Maybe some of them -
>the power users with big ego - will delete them as a proof on concept
>that MacOS 9 with AFP and with Mac servers would be a better choice.
>Did you turned on the hide dot files option?
>What codepage do you use? I've used cp850 and utf8 as unix charset and
>display to be compatible with everything. Thanks your help,
>
>Ago
>
>-----------
>Deim Ágoston
>LSC Linux Support Center Kft.
>e-mail: deim.agoston at lsc.hu
>Tel/fax:06-1/341-0457
>
>  
>



More information about the samba mailing list