I was setting up printer sharing to Windows machines on my home network via Samba yesterday, and got following bizarre problem -- I can print from Windows fine but printer status on Windows box reads "Access denied, unable to connect" instead of Ready or Printing or whatever. Effectively there is no access to the printer queue for some reason. I was googling for quite some time, and it seems many people having the same problem but very few solutions were offered. At the end I came across this page
which solved my problem. So I am posting it here in case if other linux users have the same problem.
Quoting the page linked above:
I managed to get that fixed by adding the line use client driver = yes to the [printers] section of /etc/samba/smb.conf.
Also as Colin points out it is important to activate raw octet-stream mime type in CUPS.
One questions bugs me though -- why "use client driver = yes" solved the problem with printer queue accessibility from Windows? On a side note, my Mac printed through Samba perfectly without this option and was able to read a queue as far as I remember.
Hope this post will save someone a bit of time.