Bug 77865 - Documentation: /etc/hosts.lpd, but in /etc/lpd.perms: /etc/accepthost
Documentation: /etc/hosts.lpd, but in /etc/lpd.perms: /etc/accepthost
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: rhl-cg (Show other bugs)
8.0
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Tammy Fox
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-11-14 11:02 EST by Ronny Klein
Modified: 2007-04-18 12:48 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-12-18 11:10:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ronny Klein 2002-11-14 11:02:14 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i586; U;) Gecko/20020830

Description of problem:
If you want to connect a RH 8.0 box to a remote unix printer running on an other
RH 8.0 box, the documentation "Red Hat Linux 8.0: The Official Red Hat Linux
Customization Guide, Chapter 26. Printer Configuration, Adding a Remote UNIX
Printer" says:  "The remote machine must be configured to allow the local
machine to print on the desired queue. As root, create the file /etc/hosts.lpd
on the remote 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." 

But after doing so, you are further not allowed to print on the remote printer.
Checking /etc/lpd.perms on the remote host gives you the reason: Printing is
allowed only local. You have to uncomment the follwoing line:

##   ACCEPT SERVICE=X REMOTEHOST=</etc/accepthost

Bingo! The filenames differ.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Read "Customization Guide".
2. Create /etc/hosts.lpd on the remote host.
3. Try to print.
	

Actual Results:  Permission denied!

Expected Results:  There are two possibilities:

1. Change the "Customization Guide": Inform the Reader that one have to adjust
the permissions settings in /etc/lpd.perms. Change the filename in
/etc/lpd.perms to /etc/hosts.lpd

2. Enable 'ACCEPT SERVICE=X REMOTEHOST=</etc/hosts.lpd' in /etc/perms as default.

Additional info:
Comment 1 Tammy Fox 2002-12-18 11:10:32 EST
I have fixed this for the next release and added a docs errata
at http://www.redhat.com/docs/errata/RHL-8.0-Manual/. It should
appear shortly. Thanks for your report.
Comment 2 Theodore C. Belding 2003-01-04 15:26:32 EST
I think the docs errata at http://www.redhat.com/docs/errata/RHL-8.0-Manual/
should read:

"In addition to creating the /etc/hosts.lpd file containing hostnames, the
following line must also be added to /etc/lpd.perms to enable sharing:
ACCEPT SERVICE=X REMOTEHOST=</etc/hosts.lpd"

Currently it reads:

"In addition to creating the /etc/hosts.lpd file containing hostnames, the
following line must also be added to /etc/lpd.perms to enable sharing:
ACCEPT SERVICE=X REMOTEHOST="
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The problem seems to be an unescaped "<" in the HTML for the page:

 <tt class="COMPUTEROUTPUT">ACCEPT SERVICE=X REMOTEHOST=</etc/hosts.lpd</tt>
                                                        ^ 
should be:

 <tt class="COMPUTEROUTPUT">ACCEPT SERVICE=X REMOTEHOST=&lt/etc/hosts.lpd</tt>
 
I haven't checked to see whether this is also incorrect in the updated rhl-cg
itself.
Comment 3 Tammy Fox 2003-01-06 15:54:05 EST
Thanks for the catch. I fixed the webpage.

Note You need to log in before you can comment on or make changes to this bug.