[Samba] What am I missing here?!

Joel Hammer Joel at HammersHome.com
Sun Mar 23 13:57:05 GMT 2003


Try making things simple, not complicated.
Why do you have a printers share and a laserjet share?
Do you even know what the printer share really does? 
Get rid of it if you only have the one printer.

Since you don't give a single clue as to what is happening, it is hard
to offer any advice.

You don't have a path for the laserjet printer.

Is the job even getting transferred to your server?
A trick you can try:
Change your print command to something like:
echo Tried to print %s > /tmp/junk
Then, look at the print queue (the path parameter) and see if the file was
transferred to your linux server.

Joel


On Sat, Mar 22, 2003 at 11:12:22PM -0800, Baxter Shepperson wrote:
>   OK, I've tried changing my printcap name from printcap to cups.  Printing 
> works fine locally using CUPS on the Samba box.  What am I missing here?  Why 
> can't I print to the Samba box via the Windows and linux clients?  Shared 
> directories work fine.  I am really frustrated here and have exhausted Google 
> and all other resources I have.  Here's my smb.conf for what it's worth.
> Global parameters
> [global]
>         path = /var/spool/cups
>         passwd program = /usr/bin/passwd %u
>         domain master = True
>         printing = cups
>         dns proxy = No
>         null passwords = Yes
>         encrypt passwords = Yes
>         valid users = bax morbo amy nobody
>         invalid users = root
>         wins support = true
>         printcap name = cups
>         max log size = 1000
>         hosts allow = 192.168.1.
>         obey pam restrictions = Yes
>         passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
> *Retype\snew\sUNIX\spassword:* %n\n .
>         username level = 8
>         map to guest = Bad User
>         security = share
>         message command = /bin/sh -c '/usr/bin/linpopup
>         server string = %h server (Samba %v)
>         workgroup = SHEP
>         syslog = 0
>         netbios name = PRINTSERVER
>         log file = /var/log/samba/log.%m
>         load printers = yes
>         os level = 35
>         default = printers
> [printers]
>         comment = All Printers
>         path = /tmp
>         guest ok = Yes
>         use client driver = Yes
>         printable = yes
>         print command = lp -d %p -o raw %s; rm -f %s
>         create mask = 0700
> 
> [Laserjet]
>         writable = yes
>         browseable = yes
>         use client driver = Yes
>         guest ok = Yes
>         oplocks = No
>         printable = yes
>         print command = lp -d %p -o raw %sU 2 -f %s
>         printer name = Laserjet
>         create mask = 0700
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba


More information about the samba mailing list