GrantSharePermission method of the MSFT_NfsServerTasks class
Grants permission to access an NFS share.
Syntax
uint32 GrantSharePermission(
[in] string Path,
[in] string ClientName,
[in] string ClientType,
[in] string Permission,
[in] string LanguageEncoding,
[in] boolean AllowRootAccess
);
Parameters
-
Path [in]
-
Type: string
The local path to the exported share on the Windows NFS server.
-
ClientName [in]
-
Type: string
The hostname or IP address of the client, the name of the client group, or the name of the netgroup for which this share permission has been configured. Share permissions can be configured for individual client computers, client groups, or netgroups.
-
ClientType [in]
-
Type: string
The type of client indicated by the ClientName parameter. One of the following values:
-
host
-
An individual computer or host.
-
netgroup
-
A netgroup.
-
clientgroup
-
A client group.
-
builtin
-
This value should be used when ClientName is "All Machines".
Permission [in]
Type: string
The type of access to be granted for the NFS share. One of the following values:
"no-access"
Deny access to the share.
"readwrite"
Grant read/write access to the share.
"readonly"
Grant read-only access to the share.
LanguageEncoding [in]
Type: string
The type of language encoding that must be enabled for the NFS share. One of the following:
"euc-jp"
EUC-JP (Japanese)
"euc-tw"
EUC-TW (Traditional Chinese)
"euc-kr"
EUC-KR (Korean)
"shift-JIS"
Shift JIS (Japanese)
"big5"
Big-5 (Traditional Chinese)
"ksc5601"
KS C 5601 (Korean)
"gb2312-80"
GB2312 (1980) (Simplified Chinese)
"ansi"
ANSI
AllowRootAccess [in]
Type: boolean
If TRUE, the NFS share is configured to allow access by the UNIX root user.
Requirements
Minimum supported client |
Windows 8 |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\Microsoft\Windows\NFS |
MOF |
|
DLL |
|