Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st August 2006, 21:37
sgla1 sgla1 is offline
Junior Member
 
Join Date: Aug 2006
Location: Altadena, CA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default cupsaddsmb fails -- unable to share print drivers from samba

I am running dapper with all updates on a generic wintel pc. I have set up a simple samba server with cups to share an attached printer with windoze clients (they authenticate against a different samba pdc) Cupsaddsmb fails with the following error:
Code:
Unable to copy Windows 2000 printer driver files (1)!
Running command: smbclient //localhost/print$ -N -A /var/spool/cups/tmp/44cb9359ab2bb -c 'mkdir W32X86;put /var/spool/cups/tmp/44cb9354030f8 W32X86/HPofficejet.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[FPIG] OS=[Unix] Server=[Samba 3.0.22]
NT_STATUS_NETWORK_ACCESS_DENIED making remote directory \W32X86
NT_STATUS_OBJECT_PATH_NOT_FOUND opening remote file \W32X86/HPofficejet.ppd
NT_STATUS_OBJECT_PATH_NOT_FOUND opening remote file \W32X86/ps5ui.dll
NT_STATUS_OBJECT_PATH_NOT_FOUND opening remote file \W32X86/pscript.hlp
NT_STATUS_OBJECT_PATH_NOT_FOUND opening remote file \W32X86/pscript.ntf
NT_STATUS_OBJECT_PATH_NOT_FOUND opening remote file \W32X86/pscript5.dll
my smb.conf is:

Code:
[global]
        workgroup = fpig
        netbios name = sara-desk
        server string = lan printer server
        hosts allow = 192.168.1.
        security = share
        load printers = yes
        printing = cups
        printcap name = cups

[share1]
        path = /sharedstuff
        comment = files for everyone
        read only = no
        browseable = yes
        guest ok = yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = yes
        printable = yes
        writable = no
        guest ok = yes

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
        browseable = yes
        guest ok = no
        read only = yes
        write list = root
the /var/lib/samba/printers directory structure is as follows:
ls -lR /var/lib/samba/printers
/var/lib/samba/printers:
total 8
drwxrwxrwx 2 root root 4096 2006-07-11 05:48 W32X86
drwxrwxrwx 2 root root 4096 2006-07-11 05:48 WIN40

/var/lib/samba/printers/W32X86:
total 0

/var/lib/samba/printers/WIN40:
total 0

the cups drivers were downloaded from the cups website and installed with the included makefile to /usr/share/cups/drivers. That directory is as follows (windows ps drivers added also):
ls -lR /usr/share/cups/drivers/
/usr/share/cups/drivers/:
total 1432
-rw-r--r-- 1 root root 803 2006-07-26 15:25 cups6.inf
-rw-r--r-- 1 root root 72 2006-07-26 15:25 cups6.ini
-rw-r--r-- 1 root root 12568 2006-07-26 15:25 cupsps6.dll
-rw-r--r-- 1 root root 13672 2006-07-26 15:25 cupsui6.dll
-rw-r--r-- 1 root root 129024 2006-07-26 15:45 ps5ui.dll
-rw-r--r-- 1 root root 455168 2006-07-26 15:45 pscript5.dll
-rw-r--r-- 1 root root 26038 2006-07-26 15:45 pscript.hlp
-rw-r--r-- 1 root root 792644 2006-07-26 15:45 pscript.ntf

I don't understand where cupsaddsmb is trying to create the \W32X86 directory or why there is a permission problem.
Reply With Quote
Sponsored Links
  #2  
Old 2nd August 2006, 14:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Did you have a look at this tutorial? http://www.howtoforge.com/samba_setup_ubuntu_5.10
It also has a section about printers.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 2nd August 2006, 22:44
sgla1 sgla1 is offline
Junior Member
 
Join Date: Aug 2006
Location: Altadena, CA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default cupsaddsmb error

Hi falko and thanks for your reply.

I have looked at the tutorial you mentioned; in fact I have used it in slightly modified form to set up two different mandrake samba servers. the command cupsaddsmb works on them--it copies the drivers to /var/lib/samba/printers/W32X86 without error.

The problem only happens on my ubuntu dapper system, which I wanted to use as a print server because it has the printer installed locally.

As an experiment, in /var/lib/samba/printers I did
Code:
mv W32X86/ W32X86.old
I now get a slightly different error:
Code:
Unable to copy Windows 2000 printer driver files (1)!
Running command: smbclient ///var/run/cups/cups.sock/print$ -N -A /var/spool/cups/tmp/44d10de0386ba -c 'mkdir W32X86;put /var/spool/cups/tmp/44d10dd62f210 W32X86/HPofficejet.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Connection to  failed
What do you suppose "Connection to failed" means? Whatever, it seems to be an ubuntu dapper thing. I have checked the logs; they show nothing useful. Also, cupsaddsmb will not create the dir W32X86.

Steve
Reply With Quote
  #4  
Old 3rd August 2006, 16:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Hm, Till is the Samba expert; maybe he didn't read this thread. Write him a PM (username is till) (with the URL of this thread) and ask him if he knows a solution.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 27th February 2007, 00:31
brug71 brug71 is offline
Junior Member
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by sgla1
Hi falko and thanks for your reply.

I have looked at the tutorial you mentioned; in fact I have used it in slightly modified form to set up two different mandrake samba servers. the command cupsaddsmb works on them--it copies the drivers to /var/lib/samba/printers/W32X86 without error.

The problem only happens on my ubuntu dapper system, which I wanted to use as a print server because it has the printer installed locally.

As an experiment, in /var/lib/samba/printers I did
Code:
mv W32X86/ W32X86.old
I now get a slightly different error:
Code:
Unable to copy Windows 2000 printer driver files (1)!
Running command: smbclient ///var/run/cups/cups.sock/print$ -N -A /var/spool/cups/tmp/44d10de0386ba -c 'mkdir W32X86;put /var/spool/cups/tmp/44d10dd62f210 W32X86/HPofficejet.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Connection to  failed
What do you suppose "Connection to failed" means? Whatever, it seems to be an ubuntu dapper thing. I have checked the logs; they show nothing useful. Also, cupsaddsmb will not create the dir W32X86.

Steve
Hi Steve, I don't know if my reply style is correct. I rarely write online so be patient.
I had the same problem using Ubuntu 6.10 & Samba 3.0.22 (cups, foomatic and so on...). I solved it temporarily switching security from "share" to "user" and after cupsaddsmb switched back. I've got the same behaviour you get, If you need some more information ask. Now I solved my problem and is time to go. I hope this will help. Regards to everybody.
Reply With Quote
  #6  
Old 16th July 2008, 21:28
Lazarus1331 Lazarus1331 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default cupsaddsmb "Connection to failed"

"Connection to failed"

This message is from executing the command:
smbclient ///var/run/cups/cups.sock/print$

It is telling you that it failed to connect to your Samba server.

Use the -H <Your_Samba> option to specify the server. I was getting this error because for some reason it was not by default connecting to the right place.

Also, make sure you are providing a username and password which matches an account in smbpasswd.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 08:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.