Microsoft Virtualization Discussions

cifs setup requires changing root password

jon_presti
3,799 Views

So, when running cifs setup to enter into a workgroup mode, it requires me to change the root password.  I am certain I am missing something small here but, thought I would ask.

Thanks,

Presti

1 ACCEPTED SOLUTION

timothyn
3,799 Views

Hi Presti,

I'm not sure if this is a PowerShell related question, but yes the "cifs setup" command does require a password change if the /etc/passwd file does not exist.  If you use the DataONTAP PowerShell toolkit, you can create this file with the "New-NaCifsPasswordFile" cmdlet without needing to change the root password.  Alternatively you could create the file at the storage prompt using the wrfile command with the text from another controller.

That file is commonly used to map usernames to user IDs, but the passwords are ignored unless you have a service (e.g. cifs, ftp) configured to use passwd authentication.

Regards,

Eric

View solution in original post

2 REPLIES 2

timothyn
3,800 Views

Hi Presti,

I'm not sure if this is a PowerShell related question, but yes the "cifs setup" command does require a password change if the /etc/passwd file does not exist.  If you use the DataONTAP PowerShell toolkit, you can create this file with the "New-NaCifsPasswordFile" cmdlet without needing to change the root password.  Alternatively you could create the file at the storage prompt using the wrfile command with the text from another controller.

That file is commonly used to map usernames to user IDs, but the passwords are ignored unless you have a service (e.g. cifs, ftp) configured to use passwd authentication.

Regards,

Eric

tsentekin
3,799 Views

Alternatively on the filer there's a security policy option :

if you switch "options security.passwd.rules.enable" to off, CIFS won't ask for a password during setup, preferably you can later turn this option to on again.

Public