Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

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>] [-Credential <PSCredential>] [
-Controller <NaController>] [-WhatIf] [-Confirm] [<CommonParameters>]


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. Specifying this parame
ter will trigger a password change for the root user.

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

-Credential <PSCredential>
Credential containing the password given to a locally defined root user
which may be used in the event that other authentication services are un
available. This will be defined in the filer's local /etc/passwd file.
Specifying this parameter will trigger a password change for the root us
er.

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

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

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

-WhatIf


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

-Confirm


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


Create a new /etc/passwd file.





-------------- Example 2 --------------

C:\PS>New-NaCifsPasswordFile n3wp4sswd


Create a new /etc/passwd file and update the root users password.






RELATED LINKS
New-NaCifsGroupFile
Test-NaCifsPasswordGroupFile







 Data ONTAP® PowerShell Toolkit