Re: Samba printing problem
On Thu, 2002-01-03 at 13:03, dman wrote:
> On Thu, Jan 03, 2002 at 12:34:51PM -0500, Jeff Self wrote:
> | I'm having a heckuva time getting a Win 2K machine to print. On my
> | debian system, I have CUPS installed and its working. I've got an Epson
> | Stylus Color 600 connected to /dev/lp0 and I'm using the gimp printer
> | drivers. I've installed cupsys, cupsys-bsd, cupsys-client,
> | cupsys-driver-gimpprint, and cupsys-pstoraster. I'm running Debian
> | unstable.
> |
> | My /etc/printcap.cups file contains the following line in it:
> |
> | epson600:
> |
> | Is this all it needs?
>
> It doesn't even need to exist.
>
> | I made one change to my cupsysd.conf file. I added the following line to
> | the <Location /> section:
> | Allow From *.mydomain.name
>
> This is for the web interface.
>
> | I've added the following lines to my smb.conf file:
> |
> | [Global]
> | load printers = yes
> | printing = cups
>
> so far so good
>
> | printcap name = /etc/printcap.cups
>
> irrelevant since you have already told it that cups is the printing
> backend
>
> | [printers]
> | comment = All Printers
> | path = /var/spool/cups/tmp/
>
> Bad choice. Don't mess with cups' spool. I use /tmp. This path is
> just a temporary holding place for the file while the client machines
> sends it. Once it is there it is spooled using 'lp' or 'lpr'.
>
> | printer name = epson600
>
> You don't need this line -- the [printers] section is a magic one that
> holds general printer config. samba will create entries named for
> each of the printers that exist according to the above confing (cups
> in your case).
>
> | public = yes
> | create mode = 0700
>
> | print command = /usr/bin/lpr -P %p -o raw %s
> | lpq command = /usr/bin/lpstat -o %p
> | lprm command = /usr/bin/cnacel %p-%j
>
> These three lines aren't neede if you have the cupsys-bsd package
> installed. Setting "printing=cups" above sets the commands
> appropriately (for the *BSD interface). Also note that your print
> command is incorrect -- it is the command's responsibility to delete
> the temporary file when it is done sending it to the spooler.
>
> | available = yes
> |
> | Windows 2000 sees the printer and lets me install the drivers for it,
> | but won't let me print to it. It says 'Access Denied, Unable to Connect'
> |
> | My /var/spool/cups directory is owned by lp and the group is sys. It has
> | 700 privileges. My log file is telling me I have insufficient
> | permissions to open spool file /var/spool/cups/tmp.
>
> This is what is causing the "Access Denied" message in windows.
>
> | This is driving me crazy.
>
> Use /tmp as the path instead and all should be well.
>
> HTH,
> -D
Thanks for the info. I tried what you recommended and the Windows
machine doesn't even see a printer now.
Reply to: