Specifications
6-8
Guide to Printers and Printing
/usr/sbin/lpadmin –p printer_name –o width= scaled–number
/usr/sbin/lpadmin –p printer_name –o length= scaled–number
/usr/sbin/lpadmin –p printer_name –o cpi= scaled–number
/usr/sbin/lpadmin –p printer_name –o lpi= scaled–number
Note: The lpadmin command uses the printer type to determine whether the settings
are possible for the printer. Therefore, you must first set the printer type before you can
specify these defaults.
For example, to specify a page width of 11 inches, a page length of 14 inches, character
pitch to compressed, and line pitch of 3 lines per inch for the printer barney, enter:
/usr/sbin/lpadmin –p barney –o width=11i
/usr/sbin/lpadmin –p barney –o length=14i
/usr/sbin/lpadmin –p barney –o cpi=compressed
/usr/sbin/lpadmin –p barney –o lpi=3
If you do not provide defaults, the page size and print spacing are set to those available
when the printer is initialized. You can determine what the defaults are by first defining the
printer configuration without providing your own defaults, then using the lpstat command to
display the printer configuration. To display the default page size and print spacing, enter:
lpstat –p printer_name –l
Information similar to the following displays:
Default pitch: compressed CPI 3 LPI
Default page size: Default page size: 11i wide 14i long
If you do not set the defaults, the lpstat command reports defaults from the terminfo
database entry for the printer.
Configuring Banners
A banner is a page describing the print request (for example, printer name, user, date) that
prints with the print job.
Use the following command to permit users to decide whether they want a banner printer:
/usr/sbin/lpadmin –o nobanner
Administering the /etc/lp/Systems File
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,