[cups.general] Samba & cups: how exactly work together?
Adrian Paul
adrian.tan at qbiks.com
Tue Jun 15 18:59:22 PDT 2004
Hello,
I have a similar configuration throughout my LAN. (i.e. Suse 9.0 & WinXP)
This is what I did:
1) Using YaST, i've configured the local printer, specifying that it will be using CUPS as the print queue system. I was formatting my queue for RAW printing, hence no drivers were selected on the CUPS server end.
2) For test purposes, my Samba is sparsely configured, with the following conf.
# Global parameters
[global]
workgroup = TESTGROUP
server string = Slak
encrypt passwords = Yes
map to guest = Bad User
time server = Yes
unix extensions = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
printcap name = CUPS
os level = 2
printing = cups
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
printer name = styluscolor200
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[styluscolor200]
comment = EPSON Stylus COLOR 200
path = /var/tmp
read only = No
create mask = 0600
printable = Yes
print command = lpr -r -P%p %s -oraw
printer name = styluscolor200
oplocks = No
The above config works fine.
I advice using webmin or swat to make life that wee bit easier. Especially double checking the settings for all print related options under Samba in Webmin.
Cheers.
Adrian
Toni wrote:
> I've fight to exhaustion with the manuals, but I surrended my self. If
> somebody can help me I would be gratefully.
>
> This is the layout:
>
> Linux Suse 9.0 as a Samba(2.2.8a) master, with Cups(1.1.19) master and a
> printer Deskjet930 connected to a parallel port. Through a domestic LAN two
> Windows clients: a W2k and a XP. I pretend the printer in the linux box to
> be shared with clients.
>
> According to both manuals (samba and cups) less more than two settings in
> smb.comf are needed to get the system work: "printing = cups" and "printcap
> name = cups". In addition, of course, I've configured all the stuff
> regarding nodes, names, path, etc.
>
> In short: with Samba server and Smbclient, I can see, and access, shares in
> both directions: from linux server to windows machines and vice versa. I
> can also print locally from linux box. But although I can see the printer
> from Windows clients, I can't print. In one case (w2k) all seems works
> smoothly, but print jobs never reachs the printer (they appear to be
> scheduled in the local queue, but then banish without any sign in the
> server). In the other case (XP) I get directly this message error: "unable
> to connect to Print1. You are not allowed...".
>
> The question I want to put is: Witch are the settings one has to configure
> in Cups configuration files?. Put in another words: where ends Cups and
> begins Samba?.
>
> Then I tried configuring in cupsd.conf this directives:
>
> User lp
> Group lp
> RunAsUser Yes
>
> Port 631
>
> Browsing On
> BrowseAddress 192.168.1.255
> <Location />
> Order Deny,Allow
> Deny From All
> Allow From 127.0.0.1
> Allow From 127.0.0.2
> Allow From @LOCAL
> </Location>
>
> <Location /printers>
> Deny From All
> Allow From 192.168.1.*
> Order Deny,Allow
> </Location>
>
> But things didn't seems to improve (?).
>
> One thing more (sorry for the extension) in both Windows boxes HP
> Windows-drivers are installed for as remote printers.
>
> Regards,
> Toni
> (Barcelona)
>
More information about the cups
mailing list