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 destinationA 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/lpstatAfter 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/lpstatNote 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/lpstatAnd 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?"