User:Woozle/2013/10/26/network printing problem: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
preliminary
 
detailed description of the problem
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<hide>
[[category:dated items]]
[[category:hypertwins network]]
[[category:tech notes]]
[[date::2013-10-26]]
</hide>
==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==
==Notes==
* [https://plus.google.com/u/0/102282887764745350285/posts/ccdtCy6hwpC my post about the problem] on G+
* [https://plus.google.com/u/0/102282887764745350285/posts/ccdtCy6hwpC my post about the problem] on G+
Line 7: Line 83:
log level = 3 all:10
log level = 3 all:10
</ini>
</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
*** '''2011-01-29''' [http://ubuntuforums.org/showthread.php?t=1677873 NT_STATUS_ACCESS_DENIED while accessing a samba share]
** [[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]]
==Links==
* [https://bugzilla.samba.org/show_bug.cgi?id=9179 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.
** [https://bbs.archlinux.org/viewtopic.php?id=61826 Index » Newbie Corner » Cups -- keeps adding AuthInfoRequired automatically]

Latest revision as of 16:21, 26 October 2013

<hide> date::2013-10-26 </hide>

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>