08-27-2015 05:02 AM
We have Cisco Prime Infrastructure ver 2.2.7 as a VM. we activate the FIPS and sat a root_enable password. Unfortunately root_enable password set by someone and he has forgotten it.
I would like to reset my root_enable password.
how / where can I do this?
Thanks
Ihab
08-27-2015 07:48 AM
08-28-2015 12:15 AM
Hi,
thanks for the Answer.
but I would like to reset the "root_enable" PW in the non-FIPS mode. not the admin PW.
________________
XXprimeXX/primex# root
root root_disable root_enable
XXprimeXX/primex# root
Enter root password :
% Error : invalid root password
XXprimeXX/primex# root_enable
% Error : root password already set
XXprimeXX/primex#
_______________
08-28-2015 12:54 AM
Ah ok my admin and root are the same :)
try this may work
08-28-2015 01:11 AM
I already tried it.
to do that I have to enter to the root mode :-)
and I don`t have the PW therefor.
without to enter the the "root-mode" I change the web root PW with this command.
08-28-2015 01:26 AM
Ha I should have noticed that bit early still
try this
root_disable
root_enable
and then you should be able to change the password
for GUI
ncs webroot disable
then
ncs webroot enable
and then you should be able to change the GUI root password
08-28-2015 03:11 AM
I need the current root PW für the "root_disable" command.
__________
primeXX/PrimeX# root_disable
Enter root password :
_____
10-25-2015 08:43 PM
In PI 2.2, there is no direct command to reset root shell password since we make sure customer is well aware of this password.
If you are well done with root shell operation, disable the root password immediately in order to avoid attack.
Please find the following procedure to recover the root shell password:
1- Boot off of a CentOS/RedHat 5 or 6 install CD or DVD.
Use any of the following ISO images:
CentOS-5.10-x86_64-bin-DVD-1of2.iso
CentOS-5.11-x86_64-bin-DVD-1of2.iso
CentOS-6.6-x86_64-bin-DVD1.iso
2- Once booted, type "linux rescue" on prompt and hit ENTER key
3- Chose default options for language/keyboard and don't choose network option
4- You will see a message as below:
The rescue environment will now attempt to find your Linux installation and mount it under the directory /mnt/sysimage. You can then make any changes required to your system. If you want to proceed with this step choose 'Continue'. You can also choose to mount your file systems read-only instead of read-write by choosing 'Read-only'. If for some reason this process fails you can choose 'Skip' and this step will be skipped and you will go directly to a command shell.
Choose "Continue" in this screen
5- Once an existing installation is found, it will be mounted to "/mnt/sysimage" location and you will be dropped to command prompt.
6- Change root to the PI install location by using following command:
# chroot /mnt/sysimage
7- Move /storeddata/rootpatchpw
#mv /storeddata/rootpatchpw /root/
8- Now type "exit" and hit ENTER key
9- Type "reboot" and boot into PI
Please rate my asnwer :)
08-17-2016 10:51 AM
06-14-2017 11:36 AM
On Prime 3.1.6 I found the path for rootpatchpw was actually /storedconfig/
In short all steps above works - however for step 7 use the following:
#mv /storedconfig/rootpatchpw /root/
Thanks for all the other steps @renjithg!
06-15-2021 02:13 AM
Hi Evan
after following your advice i still have CLI login prompt & fail to login with root as user. any other users are disallowed to CLI because root is primary admin account in our CPI.
06-16-2021 12:48 AM
disregard. resolved with root password change from rescue CD
10-25-2015 10:00 PM
Hi Ihab ,
With regards to your main question, I see you mentioned that your/team installed PI with FIPS enabled and then trying to but unable to reset root_enable password.
Hence I need to make you aware of the fact that FIPS mode is introduced to meet certain security standards and as part of the same, access to root shell is disabled in FIPS mode. Be informed that the option to enable FIPS appears during PI installation phase itself. If you are certain that PI has been installed in FIPS mode, then it's obvious that it will restrict access to root shell (CLI) of the PI and related other features as mentioned below:
Please find the list of features:
If you enable FIPS mode, TFTP and FTP are disabled by default. SFTP is used for upload and download operations.
However certain features like FTP and TFTP can be enabled going to "Administration > System Settings > Server Settings".
Since the access to root shell is completely (disabled) permanently, there's no question of enabling root access or resetting its password.
I hope this answers your query appropriately, however if you still need the root access (resetting the root password), you can follow the steps shared by Renjith in this thread above.
Thank you.
Regards,
Govardhan
Rating encourages contributors !!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide