User:Woozle/2013/10/26/network printing problem

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search

Setup

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.

Symptoms

  • 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.

smb.conf

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

Notes

<ini> log file = /var/log/samba/everything.log log level = 3 all:10 </ini>

Links