/etc/lp/Systems file administration

You can make connections to any system using BSD connections.

A default wildcard entry is supplied in the /etc/lp/Systems file that allows connections to any system using BSD connections. The wildcard entry is as follows:

   *:x:-:bsd:-:n:10:-:-:Allow all BSD connections

The presence of this entry allows a print server to accept connections from systems that are not explicitly configured as known systems.

Entries specifying the remote system name can still be added to the file using the lpsystem command.

Access to a printer can be controlled from the printer's users.allow and users.deny files. See the lpadmin command for more information.

Note: The wildcard entry is only used for incoming connection requests and not for outgoing requests.

If you do not want to separately control access to each printer on your system but you want the /etc/lp/Systems file to specify which remote systems have access to your printers, remove the wildcard entry from the file and add entries for the remote systems. To do this, perform the following:

  • To remove the wildcard entry for BSD systems, use:
      /usr/sbin/lpsystem -r "*"
  • To add the entry for a specific remote system, use:
      /usr/sbin/lpsystem system-name