[Samba] Fedora, Cups, print$, and Windows XP - Oh my :)

Jed Tarungo jed303z at hotmail.com
Mon Feb 9 11:58:16 GMT 2004


Strange problem with Windows XP Home/Pro Clients and Fedora based Samba 
w/cups server.

-----
Executive summary:
I can make the printer print if I, in order:
Install the printer driver in windows
Delete the printer driver in windows
so a smbstatus
kill the session
Install the printer driver in windows again.

Then everything works. This is not just one client, its several. I assume 
its a permission
issue so I have tried setting permissions to 777, and force user = root, 
guest account = root,
to no avail. I'm hoping some pro's here will have some time to take a peek 
at this one. I've
checked google, google groups, samba.org faq's and dox, and searched the 
mail lists here for
quite a bit of time. I just can't seam to get past it.

-----
The details:

The first time I install the printer driver in windows, i'm given the 
warning:

You are about to connect to a printer on printx0r, which will automatically 
install a
print driver on your machine. Printer drivers may contain virsus or scripts 
that can be harmful
to your computer. It is important to be certain that the computer sharing 
this printer is
trustworthy. Would you like to continue? I select Yes, and it pulls up the 
printer
display menu. If I try and do a printer properties from there, I get the 
error

"Function address 0x6062e728 caused a protection fault. (exception code 
0xc0000005) Some
or all propery page(s) may not be displayed."

(This is the same error and printer that Jason Corekin was trying to get 
working
http://marc.theaimsgroup.com/?l=samba&m=102835570503943&w=2 , to which 
Gerald
Carter suggestioned trying default devmode = yes, which, unfortunetly did 
not work.)

Then I can display nothing. However, if i delete the driver and kill any 
connections to
the PC that just gave this error, and reinstall the driver The warning 
message does not
appear, and the error does not come up. Printing works just fine. If it was 
just me
I'd live with it, but this is for a couple dozen people.

	My configuration:
-----
OS - Fedora Core 1
Kernel - Linux 2.4.22-1.2115.nptl
Samba - (default rpm) 3.0.0-15
Cups - (defualt rpm) 1.1.19-13
Printer - HP CP1700 (connected to USB)
-----
smb.conf
[global]
         workgroup = shiney
         server string = %h server (Samba %v)
         load printers = yes
         printing = cups
         printcap name = cups
         map to guest = Bad User
         hosts allow = ALL
         null passwords = yes
         username map = /etc/samba/smbusers
         smb passwd file = /etc/samba/smbpasswd

[printers]
         comment = All Printers
         path = /var/spool/samba
         browseable = no
         public = yes
         guest ok = yes
         writable = yes
         printable = yes
         printer admin = root
         use client driver = yes

[print$]
         comment = Printer Drivers
         path = /etc/samba/drivers
         admin users = root
         guest ok = yes
         read only = yes
         write list = root
-----
I played around with doing guest only, and forcing users, to no avail.
-----
testparm reports no errors.
-----
permissions on /var/spool/samba nobody:nobody(0777)
permissions on /var/cache/samba nobody:nobody(0755)
permissions on /etc/samba/drivers root:root(0777) -R
-----
cat /etc/samba/smbpasswd
root:0:F6E25(etc)
nobody:0:NO PASSWORDXXX(etc)
-----
cat /etc/samba/smbusers
root = administrator admin
nobody = guest pcguest smbguest
-----
rpcclient -Uroot%secret -c 'enumprinters' printx0r
        flags:[0x800000]
        name:[\\printx0r\HPColor1700]
        description:[\\printx0r\HPColor1700,HP Color Inkjet CP1700,General 
Purpose Printing]
        comment:[General Purpose Printing]
-----
rpcclient -Uroot%secret -c 'enumdrivers' printx0r

[Windows NT x86]
Printer Driver Info 1:
        Driver Name: [HP Color Inkjet CP1700]


[Windows NT x86]
Printer Driver Info 1:
        Driver Name: [HP Color Inkjet CP1700]

-----
not sure why this is listed twice.
-----

rpcclient -Uroot%secret -c 'getdriver HPColor1700' printx0r

[Windows NT x86]
Printer Driver Info 3:
        Version: [3]
        Driver Name: [HP Color Inkjet CP1700]
        Architecture: [Windows NT x86]
        Driver Path: [\\printx0r\print$\W32X86\3\hpwa2ku0.dll]
        Datafile: [\\printx0r\print$\W32X86\3\hpwa1700.dat]
        Configfile: [\\printx0r\print$\W32X86\3\hpwantp0.dll]
        Helpfile: [\\printx0r\print$\W32X86\3\hpwauih0.hlp]

        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwacfg0.exe]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwaren2.dll]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwaren1.exe]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwasvb0.dll]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwavip0.dll]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwares0.dll]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwapre0.exe]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwajui0.dll]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwaime0.dll]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwaflt0.dll]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwaeng0.exe]
        Dependentfiles: [\\printx0r\print$\W32X86\3\hpwarpp0.dll]

        Monitorname: []
        Defaultdatatype: []
-----
I should note, that I had to do a
rpcclient -Uroot%secret -c 'setdriver HPColor1700 "HP Color Inkjet CP1700"' 
printx0r
because the windows install of the drivers didn't complete.
-----
smbd.log
[2004/02/09 03:29:19, 0] smbd/server.c:main(747)
  smbd version 3.0.0-15 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2003
[2004/02/09 03:29:32, 0] lib/util_sock.c:get_socket_addr(919)
  getpeername failed. Error was Transport endpoint is not connected
[2004/02/09 03:29:32, 0] lib/util_sock.c:read_socket_data(342)
  read_socket_data: recv failure for 4. Error = Connection reset by peer
[2004/02/09 03:29:37, 0] lib/util_sock.c:get_socket_addr(919)
  getpeername failed. Error was Transport endpoint is not connected
[2004/02/09 03:29:37, 0] lib/util_sock.c:read_socket_data(342)
  read_socket_data: recv failure for 4. Error = Connection reset by peer
[2004/02/09 03:29:37, 0] lib/util_str.c:safe_strcpy_fn(577)
  ERROR: NULL dest in safe_strcpy
[2004/02/09 03:29:41, 0] smbd/connection.c:register_message_flags(220)
  register_message_flags: tdb_fetch failed
-----
I've done allot of searching on each of these errors, but can't find 
anything
conclusive
-----
The nmbd.log was just the service starting and stopping.
-----
I've seen allot of people posting a debug/loglevel 10, which I can do if
needed. I'm hoping (and not hoping) its something small or dumb that I did.


Thanks in advance.

_________________________________________________________________
Find great local high-speed Internet access value at the MSN High-Speed 
Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/



More information about the samba mailing list