I've got a network printer available through samba and I'd like to use it from my Ubuntu 14.04. Unfortunately simply adding it through Printers is not enough. If I try to use it it says: Connection failed: NT_STATUS_UNSUCCESSFUL
and then Unable to connect to CIFS host, will retry in 60 seconds...
How can I debug these things and learn the reason it doesn't work?
/var/log/cups/error_log
E [23/Jul/2014:13:58:41 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:58:42 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:58:43 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:58:43 +0200] [Job 5] Unable to connect to CIFS host, will retry in 60 seconds...
E [23/Jul/2014:13:59:44 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:59:45 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:59:46 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:13:59:46 +0200] [Job 5] Unable to connect to CIFS host, will retry in 60 seconds...
E [23/Jul/2014:14:00:47 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:14:00:48 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:14:00:49 +0200] [Job 5] Connection failed: NT_STATUS_UNSUCCESSFUL
E [23/Jul/2014:14:00:49 +0200] [Job 5] Unable to connect to CIFS host, will retry in 60 seconds...
Maybe it will be helpful for someone.
I encountered the same problem on Ubuntu 14.04. Steps below solved it for me:
System Settings->Printers
localhost:631
in the browserI don't know why, but only after adding printer in such way it works for me and for my colleagues.
I solved this by modifying the printer Device URI to include the username and password, in the format:
(to change this, go to System settings > Printers, then right-click on the printer icon)