Technical article 125421

Samba: Receiving error "NT_STATUS_ACCESS_DENIED" from smbclient command when trying to print to a shared Windows NT/2000/XP printer.

OpenServer 5.0.6OpenServer 5.0.7UnixWare 7.1.1UnixWare 7.1.3Open UNIX 8

Written · Last revised

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 -P

This 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?"

From the Xinuos technical article database, record 125421. Reproduced with permission. The original is at www.sco.com/ta/125421, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.