Solved

Nutanix AHV pass


Badge +5
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?
icon

Best answer by AntonioG 27 February 2020, 18:57

View original

This topic has been closed for comments

14 replies

Userlevel 4
Badge +19
@admancom

Looks like you are trying in CVM.

Can you confirm?
Badge +5
Perhaps you are connected to CVM

ID CVM and Host is different
Badge +5
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.
Badge +5
Can i change pass for AHV - host?
Badge +5
Of course you can change your AHV host password

Log into the host by SSH and change it with command

passwd root
Badge +3
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.
Userlevel 3
Badge +6
2019.02.11 LTS Community Edition
[root@NTNX-89075ba0-A ~]# passwd root
-bash: passwd: command not found
Userlevel 2
Badge +7
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
Userlevel 3
Badge +6
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.
Userlevel 3
Badge +5
Hi @admancom

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

Please refer to this Post :

When all is almost lost - forgotten root password on AHV