|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcFileDirectorySecurity
NAME
Get-NcFileDirectorySecurity
SYNOPSIS
Get security information of a file/folder.
SYNTAX
Get-NcFileDirectorySecurity [-Path] <String> [-LookupNames] [-ExpandMask] [-
VserverContext <String>] [-Controller <NcController[]>] [<CommonParameters>]
Get-NcFileDirectorySecurity [-Path] <String> -Volume <String> [-LookupNames]
[-ExpandMask] [-VserverContext <String>] [-Controller <NcController[]>] [<C
ommonParameters>]
Get-NcFileDirectorySecurity [-Path] <String> -CifsShare <String> [-LookupNam
es] [-ExpandMask] [-VserverContext <String>] [-Controller <NcController[]>]
[<CommonParameters>]
DESCRIPTION
Get security information of a file/folder.
PARAMETERS
-Path <String>
Specifies the file or folder path whose security information needs to be
read.
If Volume is specified, Path is from the root of the given volume. If C
ifsShare is specified, Path is from the root of the given cifs share. I
f Volume and CifsShare are not specified, path name lookup starts from t
he root path of the vserver.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-LookupNames
If specified, the SID will be converted to user/group name.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ExpandMask
If specified, expand the bit mask of DOS attributes, security descriptor
's control flags and every ACE.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Volume <String>
If specified, the given path name lookup starts from volume junction pat
h of the given volume.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-CifsShare <String>
If specified, the given path name lookup starts from cifs share map path
of the given cifs share.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
DataONTAP.C.Types.FileDirectorySecurity.FileDirectorySecurityInfo
NOTES
Category: file directory security
API: file-directory-security-get
Family: vserver
-------------- Example 1 --------------
C:\PS>Get-NcFileDirectorySecurity -Path /powershell/cifs
Get the security information of the given folder.
NcController : 10.63.165.62
SecurityStyle : ntfs
EffectiveStyle : ntfs
DosAttributes : 16
DosAttributesText : ----D---
DosAttributesExpanded :
UnixUserId : 0
UnixGroupId : 0
UnixModeBits : 777
Acls : {NTFS Security Descriptor, Control:0x8004, Owner:BUI
LTIN\Administrators,
Group:BUILTIN\Administrators...}
RELATED LINKS
Set-NcFileDirectorySecurity
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|