Setuserpasswd command

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:40, 31 March 2009 (edit)
Redhawk0 (Talk | contribs)

← Previous diff
Current revision (02:20, 12 May 2020) (edit) (undo)
Wrtf (Talk | contribs)
m (linkify)
 
(2 intermediate revisions not shown.)
Line 10: Line 10:
*This command automatically commits changes into nvram. *This command automatically commits changes into nvram.
*Telnet/SSH username will remain root! *Telnet/SSH username will remain root!
-*Telnet/SSH password may not take effect immediately. In this case also run the '''setpasswd''' command.+*Telnet/SSH password may not take effect immediately. In this case also run the [[setpasswd command|'''setpasswd''' command]].
*The username and password are stored securely in nvram variables, hashed with salt. *The username and password are stored securely in nvram variables, hashed with salt.
Line 16: Line 16:
*I had problems changing a password that included a special character using the command line method. Using only alpha-numeric characters worked fine. [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=49777 forum post] Special characters in a password can be entered as is through web gui password change page or Admin tab, but if entered in the command line above the password must be contained within double quote marks.[redhawk0] *I had problems changing a password that included a special character using the command line method. Using only alpha-numeric characters worked fine. [http://www.dd-wrt.com/phpBB2/viewtopic.php?t=49777 forum post] Special characters in a password can be entered as is through web gui password change page or Admin tab, but if entered in the command line above the password must be contained within double quote marks.[redhawk0]
-[[Category:English documentation]]+[[Category:Command-line reference]]
-[[Category:commandline command reference]]+

Current revision

Change the username and password used to log into the Web Interface.

usage: setuserpasswd [username] [password]

e.g.

root@DD-WRT:~# setuserpasswd myuser mypassw0rd


Notes:

  • This command automatically commits changes into nvram.
  • Telnet/SSH username will remain root!
  • Telnet/SSH password may not take effect immediately. In this case also run the setpasswd command.
  • The username and password are stored securely in nvram variables, hashed with salt.

Additional User notes:

  • I had problems changing a password that included a special character using the command line method. Using only alpha-numeric characters worked fine. forum post Special characters in a password can be entered as is through web gui password change page or Admin tab, but if entered in the command line above the password must be contained within double quote marks.[redhawk0]