06-14-2017 06:24 AM
Hi,
After logging in as admin to PI, we can switch to shell and then we are requested to give password.
Can we change this password? How?
Thanks,
Ori
06-14-2017 08:37 AM
Hi,
Try this command
user admin password plain [password]
HTH.
***Please rate and mark the comment correct if you found it helpful. Thanks***
06-14-2017 08:45 AM
Hi,
I tried this command under ncs (admin), under shell and under root... in all 3 this command doesnt exist...
Thanks,
Ori
06-14-2017 01:06 PM
Hi,
ssh to PI server and try it again.
PRIME1/admin(config)# user admin password plain ?
<WORD> Password (Max Size - 40)
06-16-2017 11:10 PM
Hi Oraz,
shell and admin are interface to two section. admin used to login to ade where you can perform limited prime cli commands like backup, restore, stop/start ncs, ha activation etc.
shell is used to login to linux kernel to diagnose and troubleshoot application issues.
shell command introdcue in PI 3.1 code.
PI31/admin# shell
Enter shell access password :
Starting bash shell ...
ade #exit
admin#PI31/admin# shell disable
Enter shell access password :
shell access is disabled
To enable shell:
PI31/admin# shell
Shell access password is not set
Configure password for shell access
Password :
Password Again :
Shell access password is set
Run the command again to enter shell
if you forget shell password, then need to use Linux root recoevery method to recover the shell password.
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 /storedconfig/rootpatchpw /root/
8- Now type "exit" and hit ENTER key
9- Type "reboot" and boot into PI
Please rate my answer which encourage for more activation :)
08-24-2020 07:06 AM
Thanks for update.
It is helpful.
09-23-2020 02:34 PM
I found a way around it without disabling shell. all you need to do is change the password after you successfully login to shell.
admin#PI31/admin# shell
Enter shell access password :
(Enter previous password)
ade # passwd
Changing password for user admin.
Changing password for admin.
(current) password:
(New) password: {set up a password you will always remember}
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