How to reset password for root administrator (nsroot) of Citrix ADC

      Comments Off on How to reset password for root administrator (nsroot) of Citrix ADC

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 is an Principal Consultant, He has a strong background specializing in datacenter and deployment solutions, and has spent over 20 years in the planning, design, and implementation of network technologies and Management and system integration.He hold CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1997.Cary is also a Microsoft Most Valuable Professional (MVP) and Cisco Champion, He is a published author with serveral titles, include blogs on Checkyourlogs.net, author for many books. Specialties: CCIE /CCNA / MCSE / MCITP / MCTS / MCSA / Solution Expert / CCA
Blog:
http://www.carysun.com http://www.checkyourlogs.net
Twitter:@SifuSun

About Cary Sun

Cary Sun is an Principal Consultant, He has a strong background specializing in datacenter and deployment solutions, and has spent over 20 years in the planning, design, and implementation of network technologies and Management and system integration.He hold CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1997.Cary is also a Microsoft Most Valuable Professional (MVP) and Cisco Champion, He is a published author with serveral titles, include blogs on Checkyourlogs.net, author for many books. Specialties: CCIE /CCNA / MCSE / MCITP / MCTS / MCSA / Solution Expert / CCA Blog: http://www.carysun.com http://www.checkyourlogs.net Twitter:@SifuSun