Technical article 105605

There is a problem with the /usr/lib/acct/ckpacct and the /usr/lib/acct/turnacct scripts.

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

The /usr/lib/acct/ckpacct utility does a 'du -s' to get the size of /usr/adm/pacct. However, under SCO OpenServer Release 5.0.x, this file is a symbolic link to /var/opt/K/SCO/Unix/5.0.0Cl/usr/adm/pacct (or /var/opt/K/SCO/Unix/5.0.2Dp/usr/adm/pacct), and hence 'du -s' will always return '0' no matter what the real size of /usr/adm/pacct is.

Furthermore, the /usr/lib/acct/turnacct script, which is called 'ckpacct', may break the symbolic link when using 'mv' to move pacct around. The scripts should have been changed to use 'cp' and 'rm' instead.

Finally, /var/adm/pacct is also a symbolic link to /var/opt/K/SCO/Unix/5.0.0Cl/usr/adm/pacct (or /var/opt/K/SCO/Unix/5.0.2Dp/usr/adm/pacct) but the documentation does not make mention of /var/adm/pacct anywhere.

Solution

The problems with the /usr/lib/acct/pckacct and /usr/lib/acct/turnacct, as well as the lack of documentation on the presence of /var/adm/pacct, have been reported to SCO Engineering.

See also

acctsh(ADM)

From the Xinuos technical article database, record 105605. Reproduced with permission. The original is at www.sco.com/ta/105605, 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.