Nutanix AHV pass | Nutanix Community
Skip to main content
Hello, after new install single-node cluster, i dont change pass for root user.

# passwd root

bash: passwd: command not found



what am I doing wrong?
@admancom



Looks like you are trying in CVM.



Can you confirm?
Perhaps you are connected to CVM



ID CVM and Host is different
No, I connect through the SSH directly to the AHV host and there is this error.

On AHV default pass root nutanix/4u and dont change it.



On the computer, the password was changed successfully.
Can i change pass for AHV - host?
Of course you can change your AHV host password



Log into the host by SSH and change it with command



passwd root
Hello



the same problem on nutanix "Version 2018.05.01 - Community License"



Connected to a recent installed AHV server (not the CVM)

code:
[root@NTNX-04402ebc-A ~]# passwd 
-bash: passwd: command not found

[root@NTNX-04402ebc-A ~]# whereis passwd
passwd: /etc/passwd






On the CVM exists the passwd command and work.



code:
nutanix@NTNX-04402ebc-A-CVM:192.168.XXX.XXX:$ whereis passwd
passwd: /usr/bin/passwd /etc/passwd /usr/local/nutanix/bin/passwd.exp /usr/share/man/man5/passwd.5.gz




Any razon to don't have the password command on the AHV ??



thanks and attentive
I am having exactly the same problem. I can easily change the nutanix user password on my CVM using the passwd command, but when I SSH into AHV the passwd (or passwd root)command returns the error bash: passwd: command not found. This is on a freshly installed Nutanix CE single node cluster AHV Version Nutanix 20180425.199.
2019.02.11 LTS Community Edition

[root@NTNX-89075ba0-A ~]# passwd root

-bash: passwd: command not found
I can remember that passwd isn't installed as default in community edition.

You can install it with sudo yum -y install passwd



this information comes without any warranty: I don't know if the system still works afterwards; I 've tried it in one of the older community versions
Hi Manfred. Thanks for your reply!
I'm also having this issue - and @manfred's suggested



"sudo yum -y install passwd"



fails "Cannot find a valid baseurl for repo: base/7/x86_64".
How silly, I ran a 'sudo dhclient' and then the 'sudo yum -y install passwd' worked immediately.

Thanks to those before me in this thread.
Hi @admancom



Try using the "chpasswd" command. For additional details, please check the following KB: https://portal.nutanix.com/kb/6153

Please refer to this Post :

When all is almost lost - forgotten root password on AHV