Technical article 100819

Unexpected messages on message queue 50 when passwd(C) or lp(C) are run.

OpenServer 5.0.0

Written · Last revised

Problem

My application is receiving unexpected 32 byte messages on a message queue with id 50 whenever passwd(C) or lp(C) are run.

Cause

This is caused by passwd(C) and lp(C) using dlvr_audit(ADM) to send auditing information to the audit subsystem.

dlvr_audit(ADM) uses a message queue to send this information. It uses the message id specified in the file:

/tcb/files/audit/audit_dmninfo

On a system that has never had auditing enabled, this contains a message id of 50, thus causing the above problem.

Solution

This can be avoided by removing:
/tcb/files/audit/audit_dmninfo
Note that if auditing is enabled on a system, and then disabled,
the same problem will arise (on a queue with a different id) as
the file will have been re-created.  As before, it can be avoided
by removing the file.

See also

msgget(S), msgctl(S), msgop(S), dlvr_audit(ADM)

From the Xinuos technical article database, record 100819. Reproduced with permission. The original is at www.sco.com/ta/100819, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

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.