[Samba] Problem adding printer drivers

Tom Crummey tom at ee.ucl.ac.uk
Tue Oct 10 15:58:36 GMT 2006


Hello,

Environment: Samba-3.0.23c on Solaris 9 using LDAP (Sun DS 5.2)

I'm trying to follow the procedure in the Samba 3 HOWTO in Chapter 21 to 
install printer drivers to the print$ share on the samba server. I've 
got as far as extracting the drivers from a Windows machine and am 
trying to register them with Samba using the rpcclient adddriver command.

The command I'm using:

/opt/samba/bin/rpcclient -U'tom%*******' -c 'adddriver "Windows NT x86" 
"Kyocera FS-C5030N 
KX:KMUC41IE.DLL:KMF04610.MDX:KMUU41IE.DLL:KMWTEN22.HLP:NULL:RAW:KMFS41IE.DLL,KMRG41IE.DLL,KMRC41IE.DLL,KM3D41IE.DLL,KMPE41IE.DLL,KCMV3D.INI,KMWM41IE.DLL, 
\
KMPF41IE.DLL,KMPO41IE.DLL,KMSW41IE.DLL,KMPLSWOP.DLL,KMPLSWO1.DLL,KMXL41IE.DLL,KM5E41.DLL,KM5C41IE.DLL,KMPS41IE.DLL,KMAGFA1.FDF,KMPRE2.FDF,KM311710.DAT' 
spock

The problem I'm getting is that the newline after the \ is not being 
escaped and is being counted as part of the filename on the next line. 
Here is an extract from the logs:

[2006/10/10 16:21:42, 3] lib/util.c:unix_clean_name(603)
   unix_clean_name [W32X86/3/
    KMPF41IE.DLL]
[2006/10/10 16:21:42, 3] smbd/dosmode.c:unix_mode(147)
   unix_mode(W32X86/3/
    KMPF41IE.DLL) returning 0744
[2006/10/10 16:21:42, 3] lib/util.c:unix_clean_name(603)
   unix_clean_name [W32X86/
    KMPF41IE.DLL]
[2006/10/10 16:21:42, 0] 
printing/nt_printing.c:move_driver_to_download_area(1908)
   move_driver_to_download_area: Unable to rename [W32X86/
    KMPF41IE.DLL] to [W32X86/3/
    KMPF41IE.DLL]
[2006/10/10 16:21:42, 3] smbd/sec_ctx.c:set_sec_ctx(241)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/10/10 16:21:42, 1] smbd/service.c:close_cnum(1141)
   spock (128.40.42.33) closed connection to service print$
[2006/10/10 16:21:42, 3] smbd/connection.c:yield_connection(69)
   Yielding connection to print$

Anyone any ideas on what's wrong or how I can get around it?

-- 
Tom.

--------------------------------------------------------------------------
  Tom Crummey, Systems and Network Manager,    EMAIL: tom at ee.ucl.ac.uk
  Department of Electronic and Electrical Engineering,
  University College London,                     TEL: +44 (0)20 7679 
3898
  Torrington Place,                              FAX: +44 (0)20 7388 9325
  London, UK, WC1E 7JE.
--------------------------------------------------------------------------


More information about the samba mailing list