Skip to main content
Solved

Nutanix AHV pass

  • Mar 17, 2018 10:20 AM UTC
  • 14 replies
  • 3545 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

View original
This topic has been closed for replies.

14 replies

sandeepmp
Nutanix Employee
Forum|alt.badge.img+19
  • Nutanix Employee
  • Mar 17, 2018 11:36 AM UTC
@admancom

Looks like you are trying in CVM.

Can you confirm?

Forum|alt.badge.img+5
  • Adventurer
  • Mar 19, 2018 1:26 AM UTC
Perhaps you are connected to CVM

ID CVM and Host is different

Forum|alt.badge.img+5
  • Author
  • Voyager
  • Mar 22, 2018 3:34 AM UTC
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
  • Mar 25, 2018 4:00 PM UTC
Can i change pass for AHV - host?

Forum|alt.badge.img+5
  • Adventurer
  • Mar 27, 2018 2:44 AM UTC
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
  • Nov 28, 2018 10:19 PM UTC
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
  • Apr 15, 2019 12:01 PM UTC
2019.02.11 LTS Community Edition
[root@NTNX-89075ba0-A ~]# passwd root
-bash: passwd: command not found

manfred
Forum|alt.badge.img+8
  • Trailblazer
  • Apr 15, 2019 2:27 PM UTC
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
  • Apr 16, 2019 9:15 AM UTC
Hi Manfred. Thanks for your reply!

  • Voyager
  • May 4, 2019 6:36 PM UTC
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 6:38 PM UTC
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
  • Feb 27, 2020 5:57 PM UTC