LPD permission
Konrad Heuer
kheuer2 at gwdg.de
Fri May 30 04:29:40 PDT 2003
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 at gwdg.de) ____ ___ _______
GWDG / __/______ ___ / _ )/ __/ _ \
Am Fassberg / _// __/ -_) -_) _ |\ \/ // /
37077 Goettingen /_/ /_/ \__/\__/____/___/____/
Germany
More information about the freebsd-questions
mailing list