大网数据广告活动
网络与域名解析

NFS Server and File Permissions

· 52CE 我爱测

Provides some information about NFS Server and File Permissions.

This article provides some information about NFS Server and File Permissions.

Original KB number:   231964

Summary

This article describes how to set file permissions on your Windows NT network file system (NFS) exports to work with UNIX NFS workstations.

More information

You do not need to perform these steps when using only anonymous authentication, although the results can give you some insight into how NTFS file permissions are reflected onto UNIX workstations.

Note: The following instructions assume that the Windows NT Server-based NFS computer is configured to use default values for advanced options and security permissions.

On the Microsoft Windows NT Server-based NFS computer:

  1. Always set the NTFS permissions on your export (and all folders and files underneath the export) to Full Control for Everyone, the Administrators group, and the Administrator user.

  2. If your export folder is empty, create a dummy file called dummyfile in your NFS export folder.

  3. If you are not using a network information service (NIS) server, copy the Etc/Passwd and Etc/Group files in binary mode from the appropriate UNIX computer to the Winnt\System32\drivers\etc folder.

    [!NOTE] Leave the password fields blank. It is recommended that UIDs and GIDs be unique as a whole, as well as user names and groups as a whole. For example, do not use 1001 for a user and a group, and do not have a wheel user in addition to a wheel group.

  4. Map each user and each group to a unique Windows NT user and group. You can do this using Server for NFS User Manager.

  5. Map the UNIX root user to the Windows NT Administrator user and the group root or wheel to the Windows NT Administrators group.

On the UNIX NFS client:

  1. Log on as root (only root can mount an NFS export). Mount the export on your UNIX workstation by typing

    mount ntserver :/F/export/home/user /mnt  
    

    where ntserver is the host name of the Windows NT Server-based computer, F/export/home/user is the path to the export, and mnt is a locally available mount point.

  2. Check the permissions by typing:

    ls -l  
    

    Output similar to the following example is displayed:

    -rwxrwxrwx 1 root root dummyfile
    
  3. Assign the appropriate owners to the files and folders by typing:

    /usr/ucb/chown -R user.group /mnt  
    

    [!NOTE] In some UNIX operating systems, the chown command does not take a group parameter. In these situations, you need to type chgrp -R group /mnt in addition to this command.

  4. Assign appropriate permissions to the files and folders by typing:

    chmod -R g-w,o-wx /mnt  
    
  5. Verify the new permissions by typing:

    ls -l  
    

    Output similar to the following example is displayed:

    -rwxr-xr-- 1 user group dummyfile  
    

If you are unable to change the permissions on a file or if you receive "access denied" error messages, use the following steps:

  1. On the Windows NT Server-based NFS computer, assign Full Control to the export for Everyone, the Administrators group, and the Administrator user.
  2. On the UNIX NFS client, copy the file to a different name (you must do it as a user, not as root). Delete the original file in Windows NT and rename the file to its original name.

Some Windows NT users and groups cannot be mapped to equivalent UNIX users or groups. They may be displayed as nobody4 or nogroup. Special groups that exhibit this behavior include:

  • Everyone
  • Network
  • Interactive
  • System
  • Authenticated users

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。