Skip to main content
Solved

Nutanix AHV pass

  • March 17, 2018
  • 14 replies
  • 3431 views

Forum|alt.badge.img+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?

Best answer by AntonioG

Please refer to this Post :

When all is almost lost - forgotten root password on AHV

This topic has been closed for replies.

14 replies

sandeepmp
Nutanix Employee
Forum|alt.badge.img+19
  • Nutanix Employee
  • March 17, 2018
@admancom

Looks like you are trying in CVM.

Can you confirm?

Forum|alt.badge.img+5
  • Adventurer
  • March 19, 2018
Perhaps you are connected to CVM

ID CVM and Host is different

Forum|alt.badge.img+5
  • Author
  • Voyager
  • March 22, 2018
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.

Forum|alt.badge.img+5
  • Author
  • Voyager
  • March 25, 2018
Can i change pass for AHV - host?

Forum|alt.badge.img+5
  • Adventurer
  • March 27, 2018
Of course you can change your AHV host password

Log into the host by SSH and change it with command

passwd root

Forum|alt.badge.img+3
  • Adventurer
  • November 28, 2018
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.

Forum|alt.badge.img+6
  • Trendsetter
  • April 15, 2019
2019.02.11 LTS Community Edition
[root@NTNX-89075ba0-A ~]# passwd root
-bash: passwd: command not found

manfred
Forum|alt.badge.img+8
  • Trailblazer
  • April 15, 2019
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

Forum|alt.badge.img+6
  • Trendsetter
  • April 16, 2019
Hi Manfred. Thanks for your reply!

  • Voyager
  • May 4, 2019
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".

  • Voyager
  • May 4, 2019
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.

RichardsonPorto
Nutanix Employee
Forum|alt.badge.img+5
Hi @admancom

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

AntonioG
Nutanix Employee
Forum|alt.badge.img+4
  • Nutanix Employee
  • Answer
  • February 27, 2020