Technical article 100032

Network drive error using NFS shared mounts with SCO AFPS.

OpenServer 5.0.0

Written · Last revised

Problem

I am using an NFS exported directory as an SCO Advanced File and
Print Share.  When I use certain client applications and try to
re-save files I had previously created on this share, I get the
error:
Network Error on Drive E

If I cancel from the error, I get the error message:

FILE1.BMP

Not able to open this file Make sure that the path and file name are correct

From Microsoft Windows95 I get the error:

File could not be saved. File marked read only!

Solution

See the section entitled, "Shared NFS mounts may need root access enabled" in the chapter entitled "Known Limitations" in the SCO Advanced File and Print Server Release Notes.

Some Microsoft Windows applications, such as Microsoft Paintbrush,
create a temporary copy of the original file while the updated or
edited version is rewritten to the network drive.  The AFPS server
carries out these operations in the UNIX NFS filesystem on behalf
of the client workstation.  In the described situation, the
temporary file operations are carried out by AFPS as the root
user.  Due the the implementation of security within NFS in regard
to root, access may be denied.  By default, NFS shares are
exported with read and write permission to all, without root
access.

The -root=<systemname> option must be used in the /etc/exports file to enable root access by AFPS to the NFS mounted file system. The systemname used in this option must match the output from the hostname (ADMN) command on the system to which it refers.

For example:
Machine "A" exports /tmp to the AFPS server called "B".  The
/etc/exports file on machine A must have an entry similar to the
following, which will allow root access from the AFPS server to
the NFS mounted file system:
/tmp  -root=B.sco.com

NOTE: The hostname command on machine B displays:

B.sco.com

This is the system name which must be used in the exports file.

Edit the file /etc/exports using your favorite editor to make
the necessary changes.  Then run the command exportfs -a to
force a re-read of the /etc/exports file to update the system
configuration.

Now, on machine B, which is the AFPS server, mount /tmp from machine A to /mnt (or some other mount point):

mount -fNFS,intr,soft,bg  A:/tmp /mnt

Set up the AFPS network disc share to provide access to /mnt by the AFPS client workstations:

net share MNT=c:/mnt

See also

exportfs(NF)

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