Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2003 13:29:36 +0200 (CEST)
From:      Konrad Heuer <kheuer2@gwdg.de>
To:        Antoine Jacoutot <ajacoutot@lphp.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: LPD permission
Message-ID:  <20030530132554.D4307-100000@gwdu60.gwdg.de>
In-Reply-To: <200305301256.06906.ajacoutot@lphp.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 30 May 2003, Antoine Jacoutot wrote:

> How can I set permissions on LPD spooler. I would like an entire network
> to be able to print while another must not.
> Obviously, the hosts.lpd file does not accept network range nor NIS
> netgroups...
> I don't feel like entering hundreds of @ip by hands.
>
> Any ideas ?

What about the following shell script? Should work for you, if you replace
192.168.1 by your real network address:

#!/bin/tcsh

@ n = 1

while ( $n < 255 )
  echo "192.168.1.$n" >> /etc/hosts.lpd
  @ n ++
end

Best regards

Konrad Heuer (kheuer2@gwdg.de)  ____            ___  _______
GWDG                           / __/______ ___ / _ )/ __/ _ \
Am Fassberg                   / _// __/ -_) -_) _  |\ \/ // /
37077 Goettingen             /_/ /_/  \__/\__/____/___/____/
Germany





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030530132554.D4307-100000>