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.

About 智足者富


电子邮件地址不会被公开。 必填项已用*标注

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>