December 21, 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.

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

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

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

5.Press ENTER to display the # prompt.

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.

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

/sbin/mount /dev/ada0s1a /flash

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

df

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

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

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

reboot

Hope you enjoy this post.

Cary Sun

Twitter: @SifuSun

Web Site: carysun.com

Blog Site: checkyourlogs.net

Blog Site: gooddealmart.com

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