Sunday, November 28, 2010

How do I fix files showing up as 0k on a SMB mount in Snow Leopard? by Bruce Garlock

MacOSX,Samba,BGarlock

2010/09/21

by Bruce Garlock

We have been battling a strange Snow Leopard font issue (who hasn't) for a while now, and this one seemed to work on some SL machines, and not others. As it turned out, I had made some changes as to the way SMB connections happen on my machine, so I couldn't reproduce this issue. I had even made this change on a couple of our Art department managers machines, so we couldn't get it to mess up on their machines either. The problem presents itself like this:

* An SMB connection to a Windows Server 2003
* Files where originally copied via AppleTalk (AFP)
* When viewing those files, they show up as 0k

In our case, those files are fonts, and this SMB share was our font sharing resource for our company. So, some users would go to the SMB share and see the fonts as 0k, unable to copy them or use them in any way. We had to have someone who had a machine where things worked properly (10.5 and below, and as it turns out the little hack I will present below for the SL machines). This of course is a pain, and slows down our workflow.

Long story short, we had to disable "named streams" in SMB. To do this system wide (as root*):


1. Create a new file (as this file is probably not on your system) as: /etc/nsmb.conf

2. Add the following lines:

[default]
streams=no

3. Save, and reboot

* You need to be root to write this file to /etc. In order to become root, an account needs to be an 'admin' account. Then, just hit the terminal with:

 'sudo su -' 

If you are using an account that is a regular user, then you will need to 'su' to the admin account, before you can run 'sudo su -'

Type in your admin users password, and you should be at the # prompt, denoting root.

Hope this helps someone else out. I had totally forgotton that I had made those changes to /etc/nsmb.conf on the machines where everything was working!

Comments: Click Here.

Want to showcase your product to our audience? Check our advertising options.



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them.

I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. If you have any question, please do feel free to contact me.


Source: http://aplawrence.com/BGarlock/smb_mounts.html

ipad iphone Lindsay Lohan maksim chmerkovskiy colt brennan accident

No comments:

Post a Comment