Setting Up a .printers File
The .printers file is located in a user's home directory. This file
includes information about a user's default printer and other frequently used printers. Having a
.printers file enables users to establish their own printer aliases. For example,
a _default alias can be used to specify a user's default printer.
Also, a special _all alias can be used to define a list of
printers that are affected when a print job is canceled or to check
the status of printers.
The use of the .printers file by the LP print service is controlled
by the naming service switch (/etc/nsswitch.conf). The default configuration specifies that the print
service checks a user's home directory to locate printer configuration information before it
checks the other naming services. So, you can tailor a user's printer configuration file
to use custom printer information rather than the shared information in the naming
For more information about the .printers file, see theprinters(4) man page. For more information
about the naming service switch, see the nsswitch.conf(4) man page.
How to Set Up a .printers File
This procedure shows users how to set up .printers file in their own
- Log in to the systemwith your user name and password..
- If necessary, change directories to $HOME.
% cd $HOME
- Start the file editor that you want to use to create a .printers
file in the user's home directory.
- (Optional) Set up the _default alias to make a specific printer the user's default
printer. Use an entry that is similar to this entry.
- Set up the _all alias to define the printers affected when you cancel
a print request or check the status of printers. Use an entry similar
to this entry.
- Save the file as .printers.