[Samba] Problem adding printer drivers

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


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 

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/
[2006/10/10 16:21:42, 3] smbd/dosmode.c:unix_mode(147)
    KMPF41IE.DLL) returning 0744
[2006/10/10 16:21:42, 3] lib/util.c:unix_clean_name(603)
   unix_clean_name [W32X86/
[2006/10/10 16:21:42, 0] 
   move_driver_to_download_area: Unable to rename [W32X86/
    KMPF41IE.DLL] to [W32X86/3/
[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 ( 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 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 
  Torrington Place,                              FAX: +44 (0)20 7388 9325
  London, UK, WC1E 7JE.

More information about the samba mailing list