[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Files Reference

hosts.lpd File Format for TCP/IP

Purpose

Specifies remote hosts that can print on the local host.

Description

The /etc/hosts.lpd file defines which remote systems are permitted to print on the local system. The remote systems listed in this file do not have the full privileges given to files listed in the /etc/hosts.equiv file.

Host-Name Field

The hosts.lpd file supports the following host-name entries:

+
HostName
-HostName
+@NetGroup
-@NetGroup

A + (plus sign) signifies that any host on the network can print using the local host. The HostName entry is the name of a remote host and signifies that HostName can print, using the local host. A -HostName entry signifies the host is not allowed to print using the local host. A +@NetGroup or -@NetGroup entry signifies all hosts in the netgroup or no hosts in the netgroup, respectively, are allowed to print using the local host.

The @NetGroup parameter is used by Network Information Service (NIS) for grouping. Refer to the NIS netgroup file for more information on netgroups.

Entries in this file can be made using the System Management Interface Tool (SMIT) or the ruser command.

Note
Comments must be entered on separate lines in the hosts.lpd file. Comments should not be entered on lines containing host names.

To implement hosts.lpd file changes without restarting the system, use the System Resource Controller (SRC) refresh command.

Examples

  1. To allow remote specified hosts to print using a local host, enter:

    hamlet
    lear
    prospero
    setebos

    These entries in the local host's /etc/hosts.lpd file allow hosts hamletlear, prospero, and setebos to print files, using the local host.

  2. To prevent a remote host from printing using a local host, enter:

    -hamlet

    This entry in the local host's /etc/hosts.lpd file prevents host hamlet from printing files, using the local host.

  3. To allow all hosts in an NIS netgroup to print using the local host, enter:

    +@century

    This entry in the local host's /etc/hosts.lpd file allows all hosts in the century netgroup to print files, using the local host. The @ (at sign) signifies the network is using NIS grouping.

Files

/etc/hosts.equiv Specifies remote systems that can execute commands on the local system.

Related Information

The netgroup file for NIS.

The hosts.equiv file format for TCP/IP.

The lpd command, ruser command.

Managing and Using Remote Printers and Queues and Remote Printing Overview in AIX 5L Version 5.2 Guide to Printers and Printing.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]