Which file that must be edited to submit jobs to an attached printer?

Users cannot submit jobs to an attached printer. Choose the correct file that must be edited to fix this problem.

Users cannot submit jobs to an attached printer. Choose the correct file that must be edited to fix this problem.

A.
/etc/hosts

B.
/etc/hosts.allow

C.
/etc/host.deny

D.
/etc/hosts.lpd

E.
/var/spool/hosts.lpd

Explanation/Reference:
From http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/admin-primer/s1-printers-sharing.html:

For pure Linux or Linux/UNIX environments, printer sharing can be controlled using the /etc/hosts.lpd file. This file is not created by default; as root, create the file /etc/hosts.lpd on the machine to which the printer is attached. On separate lines in the file, add the IP address or hostname of each machine which should have printing privileges:

falcon.example.com
pinky.example.com
samiam.example.com
pigdog.example.com
yeti.example.com

To have LPRng use /etc/hosts.lpd for access control, you must add the following line to /etc/lpd.perms:
ACCEPT SERVICE=X REMOTEHOST=</etc/hosts.lpd
       
This line must be added to /etc/lpd.perms before the line containing "REJECT SERVICE=X NOT SERVER". Failure to do so will prevent /etc/hosts.lpd from being recognized. Finally, restart the lpd printer daemon by issuing the command /sbin/service lpd restart (as root).



Leave a Reply 0

Your email address will not be published. Required fields are marked *