Technical article 102450

Using SCOEdit on a NFS file: "Could not lock file. Opening read only mode".

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

I have 'read' and 'write' permissions on a filesystem NFS mounted
on my SCO OpenServer 5 platform.  Using vi, I am able to open and
save changes to files on this NFS filesystem without any problems.

However, through SCOEdit, if I try to open a file on this NFS filesystem, I get the message:

Could not lock file. Opening read only mode

SCOEdit does not allow me to save anything on the NFS filesystem. I am able to use SCOEdit to open and save files on the LOCAL filesystems.

Solution

You need to make sure that the NFS client hostname is known to
the NFS server.  This must be the fully qualified hostname, and
can be an entry in the DNS nameserver records, or an entry in
the /etc/hosts file on the server.  For example:
- Client is called 'client'.
- Server is called 'server'.

- 'client' mounts 'server's filesystem using NFS.

Then, follow these steps:
1. Run SCOEdit on the client and try to use it to open a file
   on the NFS filesystem.  The error message above will be displayed.
2. Exit the file and SCOEdit.

3. Add the fully qualified hostname of the client in the /etc/hosts file of the server:

ipaddressofclient  client  client.company.com

So if your client's ip address is, for example, 132.147.144.79, the line in /etc/hosts would look like:

132.147.144.79     client  client.company.com

4. SCOEdit will now allow you to open the NFS mounted files.

See also

TA102431, "NFS mount fails with the error "mount: access denied for <system_name>"."

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