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 ([EMAIL PROTECTED]) ____ ___ _______ GWDG / __/______ ___ / _ )/ __/ _ \ Am Fassberg / _// __/ -_) -_) _ |\ \/ // / 37077 Goettingen /_/ /_/ \__/\__/____/___/____/ Germany _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"