Technical article 126720

How do I configure a CUPS printer that utilizes a shared Windows or Samba printer that requires user authentication?

OpenServer 6.0.0OpenServer 5.0.7

Written · Last revised

Problem

How do I configure a CUPS printer that utilizes a shared Windows or Samba printer that requires authentication?

This may be required if a Windows Guest account is disabled and a printer is shared by another account that has a password defined.

Additionally, when using Samba as a NT Domain controller the Guest user cannot be used to log onto NT Client PC shares.

Typical errors may include:
NT_STATUS_ACCESS_DENIED
Tree connect failed.

Solution

1.  Log into the CUPS server administration web page from
    the system console at http://localhost:631
2.  Select Manage Printers and click on the Add Printer button.
3.  Login using root user name and password if prompted.
4.  Fill in the required Name field, plus the optional Location
    and Description fields.
5.  Click Continue.
6.  Select Windows printer via SAMBA as the device.
6.  Click Continue.
7.  For the Device URI use:  smb://user:password@server/printer
    Where:
        user = the user to log in as
        password = the user's password
        server = the Netbios name (or IP address)
        printer = printer share name
8.  Click Continue.
9.  Select the Make & Model that best match the shared printer
    in use.
NOTE:     For a user without a password, you need to specify '' for
          the password: smb://user:''@server/printer

See also

ta126211, "I cannot remotely administer the CUPS server from a web browser on port 631"

ta126532, "How to add a printer in CUPS using the lpadmin command line and not using the CUPS GUI (web) interface?"

From the Xinuos technical article database, record 126720. Reproduced with permission. The original is at www.sco.com/ta/126720, 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.