Data ONTAP® PowerShell Toolkit

Cmdlet: New-NaCifsPasswordFile


NAME
New-NaCifsPasswordFile

SYNOPSIS
Creates a basic /etc/passwd file including a root user with the specified pa
ssword.

SYNTAX
New-NaCifsPasswordFile [-Password] <String> [-Controller <NaController>] [-W
arningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParamet
ers>]


DESCRIPTION
Creates a basic /etc/passwd file including a root user with the specified pa
ssword. Note: This will overwrite an existing /etc/passwd file.


PARAMETERS
-Password <String>
The password given to a locally defined root user which may be used in t
he event that other authentication services are unavailable. This will b
e defined in the filer's local /etc/passwd file.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Controller <NaController>
The DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningAction <ActionPreference>


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable <String>


Required? false
Position? named
Default value
Accept pipeline input? false
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



NOTES


Category: cifs
API: cifs-setup-create-passwd-file

-------------- Example 1 --------------

C:\PS>New-NaCifsPasswordFile root


Create a new /etc/passwd file.






RELATED LINKS
New-NaCifsGroupFile
Test-NaCifsPasswordGroupFile







 Data ONTAP® PowerShell Toolkit