Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

Specifying default UNIX permissions for new files

Applies To: Windows 7, Windows Server 2008 R2

When a file is created on a Network File System (NFS) server, a default set of permissions is applied to the file to control access to it. Client for NFS uses the following default permissions for newly created files on NFS shared resources:

  • User: rwx (read, write, and execute)

  • Group: r–x (read and execute)

  • Others: r–x (read and execute)

To specify default file permissions using the Windows interface
  1. Open Services for Network File System: click Start, point to Programs or All Programs, point to Administrative Tools, and then click Services for Network File System (NFS).

  2. If necessary, connect to the computer you want to manage.

  3. Right-click Client for NFS, and then click Properties.

  4. Click the File Permissions tab, and select the permissions to use as defaults.

  5. To save these settings, click Apply.

To specify default file permissions using the command line
  1. Open a command prompt with elevated privileges.

  2. At the command prompt, type the following:

    nfsadmin client [ComputerName] fileaccess=ogw

     

    Argument Description

    ComputerName

    The name of the computer that you want to manage.

    ogw

    o = Code for owner permissions
    g = Code for group permissions
    w = Code for permissions for others

    Codes for permissions are shown in the following table.

     

    Code Description

    0

    None

    1

    Execute

    2

    Write

    3

    Execute and write

    4

    Read

    5

    Read and execute

    6

    Read and write

    7

    Read, write, and execute

    noteNote
    To view the complete syntax for this command, at a command prompt, type nfsadmin client /?

Additional references

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.