Howto:Change the default admin password in the config file?: Difference between revisions

From innovaphone wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The password is saved encrypted. The syntax in V5 and V6 is the same
If you need to set the admin account and password using the command line (e.g. in an update script), you can use the <code>config add /user account,password</code> function. The syntax has not changed since firmware V5.


example configuring via the browser:
example update script snippet:


http://x.x.x.x/!config change CMD0 /user admin,ip230
config add CMD0 /user admin,ip230
config activate


http://x.x.x.x/!config write
From this point on, the new account settings are active.  Admin account settings of the innovaphone devices are stored in a hidden fashion so they can not be retrieved.
However, if you use this configuration option, the account and password information is practically available in clear text in the <code>config change CMD0 ...</code> line.


http://x.x.x.x/!config activate
To remove this clear text information from the configuration file, you need to perform some additional commands:


then the passwort is not encrypted if you go to config show, to encrypt it also for the config show
config rem CMD0 /user
config activate


http://x.x.x.x/!config change cmd0
Please note that there is no need to save the configuration to flash (i.e. perform a <code>config write</code> operation). However, if you have done a save to flash after setting the <code>/user</code> option, then you also need to save it after removing it with <code>config rem</code>.


http://x.x.x.x/!config activate
'''Alternate Option in Firmware V12r1 and up'''


You can set the encrypted variable which keeps the account data directly:


vars create CMD0/AUTH px admin,ip230
Although you specify command with plain-text user and password, the account data will show up in encrypted form in the config file later.
==Related Articles==
[[Howto:Upload configuration file to device with changed or different admin password]]


[[Category:Faq|{{PAGENAME}}]]
[[Category:Faq|{{PAGENAME}}]]

Latest revision as of 10:10, 17 December 2019

If you need to set the admin account and password using the command line (e.g. in an update script), you can use the config add /user account,password function. The syntax has not changed since firmware V5.

example update script snippet:

config add CMD0 /user admin,ip230
config activate

From this point on, the new account settings are active. Admin account settings of the innovaphone devices are stored in a hidden fashion so they can not be retrieved. However, if you use this configuration option, the account and password information is practically available in clear text in the config change CMD0 ... line.

To remove this clear text information from the configuration file, you need to perform some additional commands:

config rem CMD0 /user
config activate

Please note that there is no need to save the configuration to flash (i.e. perform a config write operation). However, if you have done a save to flash after setting the /user option, then you also need to save it after removing it with config rem.

Alternate Option in Firmware V12r1 and up

You can set the encrypted variable which keeps the account data directly:

vars create CMD0/AUTH px admin,ip230

Although you specify command with plain-text user and password, the account data will show up in encrypted form in the config file later.

Related Articles

Howto:Upload configuration file to device with changed or different admin password