Microsoft KB Archive/324540

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

Article ID: 324540

Article Last Modified on 2/2/2004

-

APPLIES TO


 * 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

-



This article was previously published under Q324540



IN THIS TASK
SUMMARY
 * Set Default Permissions Using Services for UNIX Administration MMC
 * Set Default Permissions Using NFSAdmin Utility

REFERENCES



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.
 * 1) 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
 * 1) Run the following command to set the default permissions:

nfsadmin gw config fileaccess= NOTE:  is an octal number that designates the default file mask using UNIX style permissions. For example, if  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

