On Mon, 26 Feb 2001, Vincent Farget wrote:

>       I have a server where I have installed a
> Debian potato (V2.2r0) distrib.
> This server is used as a Samba server :
> (SHARES : user home directories, common softwares,
> printers).
> I have installed LPRng (Ver. 3.6.12-8).
>
> I have a little problem using LPRng :
> The problem is when 'lprng' daemon restart
> (after a reboot or when I do it manually :
> /etc/init.d/lprng [stop/start])
> the '/var/spool/lpd/my-printer/' directory and
> all the files behind, get the following
> files/directories access permissions :
>
> -->  user=daemon and group=lp with 600
>
> so when I try to print on my-printer (from
> win98 through the samba share) I have got the
> following error :
>
>
> >> Writting error on 'my-printer' share.
> >> Share not found.
>
>
> To resolve the problem, I must do a 'chmod 770 -R'
> on the '/var/spool/lpd/my-printer/'.
>
> Is it normal ?
> And how can I solve it ?

The permissions on the spool directories (/var/spool/lpd/xxx/) should be
600, not 770.  It sounds like you have the "path" variable in samba on the
printer share set to the spool directory -- this is incorrect.  Create
another temp directory somewhere and use that instead.  Here is a sample
samba config for a single printer, note the path variable:

[scfmain]
   comment = SCF Main Queue
   path = /private/spool/sambatmp
   browseable = yes
   printable = yes
   guest ok = no
   writable = no
   create mode = 0700
   hosts allow = 128.193. 127.

You can point all of your printer shares in samba to the same directory if
you wish.

        Andy


-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to