Re: remote printing permissions [solved]

1999-03-15 Thread John Stevenson
To solve my problem of remote printing, it was very simple (once
I found out what I was doing).

Edit the /etc/lpd.perms so that it allows remote print job
requests:

Find these following lines in the file:

# reject remote prints from arbitrary hosts
REJECT SERVICE=XRPQ NOT SERVER

Replace them with the following lines:

# accept remote prints from arbitrary hosts
ACCEPT SERVICE=XRPQ NOT SERVER


Most importantly of all you need to re-run the printer spooler. 
If you have lprng installed (instead of lpr) then you have to do
the following:

/etc/init.d/lprng restart

You may also have to do: 

/etc/init.d/lpd restart  

and then everything should be working...

It is not needed to edit /etc/hosts.lpd or /etc/hosts.equiv

Hope this helps you all out.
John.



[EMAIL PROTECTED] wrote:
> 
> On 14 Mar, Alec Smith wrote:
> > You can use individual IP addresses -- Mine is
> >
> > 130.108.229.31
> > 130.108.229.32
> >
> > You can also use something like 130.108.229 to indicate that an entire
> > subnet has access. The general format is something similar, but not
> > identical to hosts.allow/hosts.deny.
> >
> > Other than that, there really isn't all that much.
> >
> > Be sure and restart lpd after editing this file... In /etc/init.d do a
> > ./lpd restart Without doing this, your changes will not take effect until
> > the machine is rebooted.


Re: remote printing permissions

1999-03-15 Thread Peter Berlau
On Sun, Mar 14, 1999 at 11:17:30PM -0500, [EMAIL PROTECTED] wrote:
[..]
hi,
I've had the same errors, my resolution was to change
the files:
/etc/lpd.conf
/etc/lpd.perms


I don't change the `/etc/host.lpd`  however

cu
-- 
Peter Berlau 
[EMAIL PROTECTED]


Re: remote printing permissions

1999-03-15 Thread wax_man
On 14 Mar, Alec Smith wrote:
> You can use individual IP addresses -- Mine is
> 
> 130.108.229.31
> 130.108.229.32
> 
> You can also use something like 130.108.229 to indicate that an entire
> subnet has access. The general format is something similar, but not
> identical to hosts.allow/hosts.deny.
> 
> Other than that, there really isn't all that much.
> 
> Be sure and restart lpd after editing this file... In /etc/init.d do a
> ./lpd restart Without doing this, your changes will not take effect until
> the machine is rebooted.
> 
> 
> Alec
> 
> 
> 
> 
> 
> On Sun, 14 Mar 1999 [EMAIL PROTECTED] wrote:
> 
>> On 14 Mar, Alec Smith wrote:
>> > Take a look at /etc/hosts.lpd
>> > 
>> > 
>> > 
>> > On Sun, 14 Mar 1999 [EMAIL PROTECTED] wrote:
>> > 
>> >> What file do I need to modify to allow remote printing on a linux box? 
>> >> Right now when I try to print, I get a no connect permission error.
>> >> 
>> >> TIA
>> >> 
>> >> 
>> >> -- 
>> >> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
>> >> 
>> >> 
>> > 
>> > 
>> What is the format of that file supposed to be?  I can't find much on
>> it, so I guessed and just listed the ip addr of the machines I wanted
>> to allow.
>> 
>> Thanks,
>> 
>> Chris
>> 
>> 
>> -- 
>> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
>> 
>> 
> 
> 
Ok, I created the file, and then ran /etc/init.d/lprng restart.  I'm
still getting the connect errors.  Here is the exact error:
no connect permissions
job  tranfer to [EMAIL PROTECTED] failed

This error came from netscape.  I tried to print from xemacs, but
nothing came out.  I can't find an error in any of the logs I looked
at, but I'm not overly sure where that kind of error would be logged. 

Anyway, does lprng work differently from lpd in the lpr package?  Or is
there something that I"m missing here?

Thanks,

Chris

P.S.

Here is my /etc/printcap file on the linux box I'm trying to print from.

#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of California at Berkeley. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
#   @(#)etc.printcap5.2 (Berkeley) 5/5/88
#
# This file was generated by /usr/sbin/magicfilterconfig.
#
#lp|hpdj672c|HP Deskjet 672C:\
#   :lp=/dev/lp0:sd=/var/spool/lpd/hpdj672c:\
#   :sh:pw#80:pl#66:px#1440:mx#0:\
#   :if=/etc/magicfilter/dj550c-filter:\
#   :af=/var/log/lp-acct:lf=/var/log/lp-errs:
lp|hpdj672c|HP Deskjet 672C:\
:lp=/dev/null:sd=/var/spool/lpd/hpdj672c:\
:rm=192.168.1.1:\
:rp=hpdj672c:\
:sh:



Re: remote printing permissions

1999-03-15 Thread Alec Smith
You can use individual IP addresses -- Mine is

130.108.229.31
130.108.229.32

You can also use something like 130.108.229 to indicate that an entire
subnet has access. The general format is something similar, but not
identical to hosts.allow/hosts.deny.

Other than that, there really isn't all that much.

Be sure and restart lpd after editing this file... In /etc/init.d do a
./lpd restart Without doing this, your changes will not take effect until
the machine is rebooted.


Alec





On Sun, 14 Mar 1999 [EMAIL PROTECTED] wrote:

> On 14 Mar, Alec Smith wrote:
> > Take a look at /etc/hosts.lpd
> > 
> > 
> > 
> > On Sun, 14 Mar 1999 [EMAIL PROTECTED] wrote:
> > 
> >> What file do I need to modify to allow remote printing on a linux box? 
> >> Right now when I try to print, I get a no connect permission error.
> >> 
> >> TIA
> >> 
> >> 
> >> -- 
> >> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> >> 
> >> 
> > 
> > 
> What is the format of that file supposed to be?  I can't find much on
> it, so I guessed and just listed the ip addr of the machines I wanted
> to allow.
> 
> Thanks,
> 
> Chris
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> 
> 


Re: remote printing permissions

1999-03-15 Thread wax_man
On 14 Mar, Alec Smith wrote:
> Take a look at /etc/hosts.lpd
> 
> 
> 
> On Sun, 14 Mar 1999 [EMAIL PROTECTED] wrote:
> 
>> What file do I need to modify to allow remote printing on a linux box? 
>> Right now when I try to print, I get a no connect permission error.
>> 
>> TIA
>> 
>> 
>> -- 
>> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
>> 
>> 
> 
> 
What is the format of that file supposed to be?  I can't find much on
it, so I guessed and just listed the ip addr of the machines I wanted
to allow.

Thanks,

Chris


Re: remote printing permissions

1999-03-15 Thread Alec Smith
Take a look at /etc/hosts.lpd



On Sun, 14 Mar 1999 [EMAIL PROTECTED] wrote:

> What file do I need to modify to allow remote printing on a linux box? 
> Right now when I try to print, I get a no connect permission error.
> 
> TIA
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> 
> 


remote printing permissions

1999-03-15 Thread wax_man
What file do I need to modify to allow remote printing on a linux box? 
Right now when I try to print, I get a no connect permission error.

TIA