Samba log showing error: failed to retrieve printer list

  If you’re using Ubuntu and seeing the following error in your Samba log:  
Failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
  If you are a home user and using samba purely for file sharing from a server or NAS you’re probably not interested in sharing printers through it. If so, you can prevent this error from occurring by adding the following lines to your /etc/samba/smb.conf:  
printing = bsd printcap name = /dev/null
  Restart samba:  
/etc/init.d/smbd restart
  …check your logs:  
less /var/log/samba/log.smbd
  and the error should now no longer be appearing.