Technical article 109953

/etc/yp/map2ascii fails with "cannot lock password file" on OpenServer 5.0.5.

OpenServer 5.0.5

Written · Last revised

Problem

Some NIS functions such as /etc/yp/map2ascii fail with the error:

Cannot lock password file

Cause

The /etc/yp/lckpwdf binary on OpenServer 5.0.5 tries to open the file /etc/security/ia/.pwd.lck when it should be trying to open /etc/.pwd.lck.

Solution

This problem is fixed in SCO OpenServer Release 5.0.6.

Following are two possible solutions for earlier releases of SCO OpenServer:

1. Replace the 5.0.5 /etc/yp/lckpwdf binary with the 5.0.4 version.

2. Create the directory /etc/security/ia and copy the /etc/.pwd.lck file into that directory:

# mkdir -p /etc/security/ia
# cp  /etc/.pwd.lck  /etc/security/ia

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