Re: flpr problem

Randolph J. Herber (herber@dcdrjh.fnal.gov)
Mon, 22 Nov 1999 11:55:50 -0600 (CST)

The following header lines retained to affect attribution:
|Date: Fri, 19 Nov 1999 09:08:22 -0600 (EST)
|From: Bruce Baller <baller@fnal.gov>
|Subject: flpr problem
|To: linux-users@fnal.gov

|Folks,

|I am unable to print using flpr unless I log in as root. I get the
|following error message:

|> flpr myfile.lis
|flpr: not set-uid (i.e. not as root)

|I am running FRHL 5.2.1-1, which includes flpr as an installed Fermilab
|product.

|Bruce Baller
|Fermilab
|Phone (630) 840-2427
|Fax (630) 840-6039

Newer versions give a more complete error message. I believe that flpr
was installed as products. It _must_ be installed as root, mode 4755
to work as it _must_ be able to open a priviledged network socket.

flpr: not set-uid (i.e. not as root)

==============================================================
A longer explanation, with additional diagnostics is given below.
If you do not understand this message, then, please, give a
complete copy of it to your support staff or system administrator.
The help desk is at x2345 or, by e-mail, at helpdesk@fnal.gov.
This message given on dcdrjh.fnal.gov [131.225.232.66],
Mon Nov 22 11:52:06 1999
==============================================================

The effective user identification flpr is executing under is non-zero;
that is, the effective user is not root. It is mandatory for the
proper and full execution of this program that the effective user be
root, so that a privileged connection can be made to the print server
host machine. The program appears not to be set uid. The ownership can
not be determined. This situation can be corrected, as root, by:

Normal UNIX: chown root flpr
chgrp sys flpr
chmod 4511 flpr

BSD, Linux: chown root flpr
chgrp sys flpr
chmod o=rsx,g=x,o=x flpr

On many recent systems, the chown and chgrp commands can
be combined as:

chown root.sys flpr

On a few systems, group sys may need to be replaced by
some other group, such as wheel.

This requirement derives from the lpd service being provided by a
privileged port.

Randolph J. Herber, herber@dcdrjh.fnal.gov, +1 630 840 2966, CD/CDFTF PK-149F,
Mail Stop 318, Fermilab, Kirk & Pine Rds., PO Box 500, Batavia, IL 60510-0500,
USA. (Speaking for myself and not for US, US DOE, FNAL nor URA.) (Product,
trade, or service marks herein belong to their respective owners.)