User:Woozle/2013/10/26/network printing problem
gonzo is running Linux Mint, has a Canon MX 310 printer attached via USB, and is sharing this printer via Samba in "share" mode (i.e. no password should be required).
The smbusers file maps all users to "sambaguest", which is a user on gonzo which belongs to the lp group. I have also tried mapping it to the system's main user, who definitely has printing permissions.
- Two other Linux systems (one Xubuntu, one Crunchbang) experience the same conditions with regard to the printer on gonzo:
- When browsing for Windows/Samba printers, they can see gonzo and the printers it is sharing.
- When attempting to print to the Canon via Samba, the system asks for username and password.
- No valid combination of user and password seems to exist, including users explicitly added with smbpasswd.
- When the printer is set up using IPP, however, printing works just fine.
- Two different Windows 98 SE systems (one in VirtualBox, the other running on hardware) share a different set of symptoms:
- They can browse and access gonzo's shares.
- They cannot see any printers on gonzo.
<ini> [global] workgroup = PINECREST server string = %h server (Samba, Ubuntu) security = SHARE null passwords = Yes obey pam restrictions = Yes guest account = sambaguest pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . username map = /etc/samba/smbusers unix password sync = Yes syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 smb ports = 139 name resolve order = lmhosts host wins bcast unix extensions = No printcap name = cups local master = No domain master = No dns proxy = No wins support = Yes usershare allow guests = Yes panic action = /usr/share/samba/panic-action %d idmap config * : backend = tdb guest ok = Yes wide links = Yes
[printers] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = No printable = Yes print ok = Yes browseable = No
[print$] comment = Printer Drivers path = /var/lib/samba/printers guest ok = No
[sysvol] path = /var/lib/samba/sysvol read only = No
[netlogon] path = /var/lib/samba/sysvol/localdomain/scripts read only = No
[scratch] path = /home/woozle/scratch read only = No </ini>
- my post about the problem on G+
- smbtree often lies, claiming no shares when in fact printers are available
- To get extensive logging:
<ini> log file = /var/log/samba/everything.log log level = 3 all:10 </ini>
- error messages:
- NT_ACCESS_DENIED - flashes briefly in status window of printer properties dialogue
- NT_STATUS_ACCESS_DENIED - shows in job properties window and CUPS error_log
- NT_STATUS_WRONG_PASSWORD - shows in CUPS error_log
- NT_STATUS_LOGON_FAILURE - shows in CUPS error_log
- held for authentication - shows in job status
- You must log in to access [name of server] - when attempting to verify connection or print
- The password may be incorrect - when entering any username/password; job is then held for authentication
- Bug 9179 - AuthInfoRequired username,password: not actually a bug. It looks like when CUPS tries to access a remote printer, and the remote printer asks for authentication, CUPS updates the printer's local profile to indicate that username and password are needed.