HOW TO: Configure Default Permissions in Gateway for NFS for a UNIX-to-Windows Migration

This article was previously published under Q324540
This article has been archived. It is offered "as is" and will no longer be updated.
SUMMARY
The default permissions for all Gateway for NFS shared file systems determine the initial permissions mask for files that are created on NFS resources that are shared to Windows clients by using the Gateway for NFS component. You can set the default permission globally by using either the Services for Unix Administration Microsoft Management Console (MMC) or by using the NFSAdmin utility from the command line. These permissions configure the starting umask for any NFS resources that are created through Gateway for NFS; however, the NFS permissions can be changed later by users who have the appropriate level of authority on the UNIX computer.

back to the top

Set Default Permissions Using Services for UNIX Administration MMC

The default mask (or umask) permissions are set globally for all Gateway for NFS shared file systems. The default value corresponds to a umask setting of 755 that is set when you initially install Services for UNIX version 3.0.

To set the default permissions:
  1. Log on to the Server for NFS computer by using an administrative level account.
  2. Click Start, point to Programs, point to Services for UNIX, and then click Services for UNIX Administration.
  3. Click Gateway for NFS.
  4. Select the check box for each individual permission to set the default UNIX-style file permissions.

    You can select Read, Write and Execute for the owner, for the group, and for others. These permissions are applied to files and folders when they are created.
  5. Click Apply.
back to the top

Set Default Permissions Using NFSAdmin Utility

You can set the default permissions for Gateway for NFS by using the NFSAdmin.exe utility from the command line. Permissions are set by using numeric, absolute file mask values, and not by using the relative, logical values that the UNIX chmod command uses.

To set the default permissions:
  1. Log on to the Server for NFS computer by using an administrative level account.
  2. Click Start, click Run, type: cmd, and then click OK.
  3. Run the following command to see the existing default permissions:

       nfsadmin gw
  4. Run the following command to set the default permissions:

       nfsadmin gw config fileaccess=modeNOTE: Mode is an octal number that designates the default file mask using UNIX style permissions. For example, if mode is 750, the default permissions are set to Read, Write and Execute for the owner, Read and Execute for members of the same group as the owner, and no access for others.
back to the top

REFERENCES
For additional information about performing maintenance tasks after migrating from UNIX to Windows, click the article number below to view the article in the Microsoft Knowledge Base:
324539 HOW TO: Perform Maintenance and Ancillary Tasks After a UNIX-to-Windows Migration

back to the top








Properties

Article ID: 324540 - Last Review: 01/11/2015 04:44:03 - Revision: 1.1

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows NT 4.0 Service Pack 6a
  • Microsoft Windows Services for UNIX 3.0 Standard Edition
  • kbnosurvey kbarchive kbhowtomaster kbdswsfu2003swept KB324540
Feedback