Technical article 110359

After installing SLS OSS497B, regular users get an error when running lpstat(C).

OpenServer 5.0.5

Written · Last revised

Problem

After installing Support Level Supplement (SLS) OSS497B, the Core OS Supplement for SCO OpenServer 5.0.5, regular users get the following error message when running the lpstat(C) command:

UX:lpstat: ERROR: The LP print service isn't running or can't be
                  reached.
          TO FIX: Your request can't be completely handled
                  without the LP print service. If this
                  problem continues, get help from your
                  system administrator.
scheduler is not running
no system default destination

A privileged user can run the same command and get the expected response.

Cause

The permissions on lpstat may be incorrect.  Run this command:
ls -lL /usr/lpd/remote/lpstat /usr/lpd/local/lpstat /usr/bin/lpstat

After installing SLS OSS497B, your output will look like this:

---x--s--x   1 bin      lp          2604 Jan 27  1999 /usr/bin/lpstat
---x--x--x   1 bin      lp        116188 Aug  4 08:26 /usr/lpd/local/lpstat
-rws--s--x   1 root     daemon     33264 Aug  4 08:27 /usr/lpd/remote/lpstat

Note that the permissions on /usr/lpd/local/lpstat and /usr/bin/lpstat above are different.

Solution

This problem has been resolved by SLS OSS497C.

The permissions on /usr/lpd/local/lpstat and /usr/bin/lpstat
should be 2111, which sets the group sticky bit.  The following
command will set permissions correctly:
chmod 2111 /usr/bin/lpstat /usr/lpd/local/lpstat

And the files should now look like this:

---x--s--x   1 bin      lp          2604 Jan 27  1999 /usr/bin/lpstat
---x--s--x   1 bin      lp        116188 Aug  4 08:26 /usr/lpd/local/lpstat

See also

ta110105, "What problems are addressed by SLS OSS497C, the Core OS Supplement for SCO OpenServer Release 5.0.5?"

From the Xinuos technical article database, record 110359. Reproduced with permission. The original is at www.sco.com/ta/110359, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.