Problem
When trying to send a print job using Samba's smbclient command to a shared printer on Windows XP, 2000 or NT 4.0, I get the following error:
"NT_STATUS_ACCESS_DENIED" Solution
Guest account access is disabled on the Windows system. The smbclient command will default to using a user name of "guest" if the -U option and argument are not specified when smbclient is run.
Enabling the guest account on the Windows system is the easiest
solution, but this may present a potential security issue if anonymous
account access is not desired. An alternative is to specify a
windows account name with shared printer privileges. The following is
an example of using the smbclient command using a specific account:smbclient "\\\\servername\\printername" password -U username -N -PThis should eliminate the error message and permit smbclient to submit data to the shared printer with proper authentication.
See also
TA125213 "How to configure a printer on Openserver to print to a Windows shared printer using Samba?"