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