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:
ls -lR /var/lib/samba/printers
drwxrwxrwx 2 root root 4096 2006-07-11 05:48 W32X86
drwxrwxrwx 2 root root 4096 2006-07-11 05:48 WIN40
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/
-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.
Did you have a look at this tutorial? http://www.howtoforge.com/samba_setup_ubuntu_5.10
It also has a section about printers.
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
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.
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.
cupsaddsmb "Connection to failed"
"Connection to failed"
This message is from executing the command:
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.
|All times are GMT +2. The time now is 11:15.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.