December 13, 2024
010422_1936_Howtoresetp1.png
If you forgot the password of nsroot account, don't panic, today, I am going to show you how to reset password for nsroot account.

If you forgot the password of nsroot account, don’t panic, today, I am going to show you how to reset password for nsroot account.

1.Reboot the Citrix ADC (if you are using physical appliance, you need to connect a computer to the console port of the Citrix ADC and log on before reboot.

2.Press CTRL+C when the following message appears:

Press [Ctrl-C] for command prompt, or any other key to boot immediately. Booting [kernel] in # seconds.

010422 1936 Howtoresetp1 - How to reset password for root administrator (nsroot) of Citrix ADC

3.Run the following command to start the Citrix ADC in a single user mode: boot -s

010422 1936 Howtoresetp2 - How to reset password for root administrator (nsroot) of Citrix ADC

4.After the appliance boots, it displays the following message:

Enter full path name of shell or RETURN for /bin/sh:

010422 1936 Howtoresetp3 - How to reset password for root administrator (nsroot) of Citrix ADC

5.Press ENTER to display the # prompt.

010422 1936 Howtoresetp4 - How to reset password for root administrator (nsroot) of Citrix ADC

6.Type the following commands to check the disk consistency.

/sbin/fsck_ufs /dev/ada0s1a

7.Click y at SAVE DATA TO FIND ALTERNATE SUPERBLOCKS.

010422 1936 Howtoresetp5 - How to reset password for root administrator (nsroot) of Citrix ADC

6.Type the following commands to mount the flash partition.

/sbin/mount /dev/ada0s1a /flash

010422 1936 Howtoresetp6 - How to reset password for root administrator (nsroot) of Citrix ADC

7.Run the following command to display the mounted partitions.

df

010422 1936 Howtoresetp7 - How to reset password for root administrator (nsroot) of Citrix ADC

8.Run the following command to change to the nsconfig directory.

cd /flash/nsconfig

9.Run the following command to create a configuration file that does not have commands defaulting to the administrator.

grep –v “set system user nsroot” ns.conf > new.conf

010422 1936 Howtoresetp8 - How to reset password for root administrator (nsroot) of Citrix ADC

10.Run the following command to make a backup of the existing configuration file.

mv ns.conf old.ns.conf

11.Run the following command to rename the new.conf file to ns.conf.

mv new.conf ns.conf

010422 1936 Howtoresetp9 - How to reset password for root administrator (nsroot) of Citrix ADC

12.Run the following command to reboot the Citrix ADC.

reboot

010422 1936 Howtoresetp10 - How to reset password for root administrator (nsroot) of Citrix ADC

Hope you enjoy this post.

Cary Sun

Twitter: @SifuSun

Web Site: carysun.com

Blog Site: checkyourlogs.net

Blog Site: gooddealmart.com

ca16fbd3199de5f66b829b87082fb970?s=80&d=retro&r=g - How to reset password for root administrator (nsroot) of Citrix ADC

Author: Cary Sun

Cary Sun has a wealth of knowledge and expertise in data center and deployment solutions. As a Principal Consultant, he likely works closely with clients to help them design, implement, and manage their data center infrastructure and deployment strategies.
With his background in data center solutions, Cary Sun may have experience in server and storage virtualization, network design and optimization, backup and disaster recovery planning, and security and compliance management. He holds CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1999. Cary is also a Microsoft Most Valuable Professional (MVP), Microsoft Azure MVP, Veeam Vanguard and Cisco Champion. He is a published author with several titles, including blogs on Checkyourlogs.net, and the author of many books.
Cary is a very active blogger at checkyourlogs.net and is permanently available online for questions from the community. His passion for technology is contagious, improving everyone around him at what they do.

Blog site: https://www.checkyourlogs.net
Web site: https://carysun.com
Blog site: https://gooddealmart.com
Twitter: @SifuSun
in: https://www.linkedin.com/in/sifusun/
Amazon Author: https://Amazon.com/author/carysun