[Samba] Problem printing with WinXP and samba

John H Terpstra jht at samba.org
Mon Dec 9 18:05:02 GMT 2002


Gabriel,

The purpose of the samba spooling directory is to allow print jobs to be
streamed into a file so that the job can then be submitted to the Linux
print system using the standard system printing command. The print job is
then removed from the samba spool area. To work correctly this diectory
needs to be world writtable/readable and for safety reasons needs to be
set with the 't' bit set.

ie: For /var/spool/samba, chmod a+t /var/spool/samba

It is not a good idea to redirect this spool area using a symlink, it just
makes things messy to debug. Also, this is NOT a printer spool area - it
is a directory into which samba receives the print job so that it can then
deliver (transfer) the job to the normal spooler.

If you want to relocate it you should put into the share called [printers]
path = /var/spool/lpd/CS3. Then the CS3 directory needs to be set as
above.

- John T.

On Mon, 9 Dec 2002, Gabriel Matthews wrote:

>
> I am having problems printing from my XP machine to a printer hosted from
> a linux redhat 8 w/samba2.2.7-2 installed.  I can see the printer fine
> from \\[server]  (browsing from network places) and I can see other shares
> and stuff, but once I install the printer, it says "access denied, unable
> to connect".  So I'm assuming that I need to set security on a file
> somewhere, but since I'm fairly new to linux, I need a little help knowing
> what files to set.
>
> /var/spool/lpd looks like this:
> total 12
> drwxr-xr-x    3 root     root         4096 Dec  9 02:28 .
> drwxr-xr-x   13 root     root         4096 Dec  5 08:01 ..
> drwx------    2 lp       lp           4096 Dec  9 05:07 CS3
>
> And the above permissions are recursively set throughout the CS3
> directory.
>
> /var/spool/samba looks like this:
> total 8
> drwxrwxrwt    2 root     root         4096 Dec  9 05:07 .
> drwxr-xr-x   13 root     root         4096 Dec  5 08:01 ..
> lrwxrwxrwx    1 lp       lp             18 Dec  9 02:31 CS3 ->
> /var/spool/lpd/CS3
>
> Do printers and their objects have to be set to LP to print?  LP is a
> group, so should I just add each user to the LP group, or is there a
> better/easier way?
>
> Or am I just missing something? :)
>
> Gabriel
>
>
>

-- 
John H Terpstra
Email: jht at samba.org



More information about the samba mailing list