Difference between revisions of "Recover lost administrator password"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
#Type the command 'passwd admin'.<br> | #Type the command 'passwd admin'.<br> | ||
#Now enter a new password (retype it when asked for). | #Now enter a new password (retype it when asked for). | ||
#Done! | #Also change the samba password with the following command: | ||
<pre>smbpasswd admin | |||
</pre> | |||
#Now enter a new samba administrator password (retype it when asked for).<br> | |||
#Finally type: | |||
<pre>exit | |||
</pre><pre>reboot | |||
</pre> | |||
Done! <br> | |||
<br> | <br> | ||
Line 26: | Line 34: | ||
#Insert your USB stick into one of the ports on your unit. | #Insert your USB stick into one of the ports on your unit. | ||
#Keep the button on the backside pressed while inserting the power cord. Keep it pressed for five seconds and then release it. | #Keep the button on the backside pressed while inserting the power cord. Keep it pressed for five seconds and then release it. | ||
#After about 1 minute you will be able to reach your unit via the IP address given to the unit from your DHCP server.<br> | #After about 1 minute you will be able to reach your unit via the IP address given to the unit from your DHCP server.<br> | ||
#Login via SSH with username 'root' and password 'excito'.<br> | #Login via SSH with username 'root' and password 'excito'.<br> | ||
#Type the following comands:<br> | #Type the following comands:<br> | ||
<pre>mount /dev/sda1 /mnt | <pre>mount /dev/sda1 /mnt | ||
</pre><pre>chroot /mnt /bin/bash | </pre><pre>chroot /mnt /bin/bash | ||
</pre><pre>passwd admin | </pre><pre>passwd admin | ||
</pre> | </pre> | ||
#Now enter a new administrator password (retype it when asked for). <br> | #Now enter a new administrator password (retype it when asked for). <br> | ||
#Also change the samba password with the following command:<br> | #Also change the samba password with the following command:<br> | ||
<pre>smbpasswd admin | <pre>smbpasswd admin | ||
</pre> | |||
#Now enter a new samba administrator password (retype it when asked for). <br> | |||
#Finally type:<br> | |||
<pre>exit | |||
</pre><pre>reboot | |||
</pre> | </pre> | ||
Done!<br> |
Revision as of 12:47, 11 November 2010
If you have lost your administrator password here are two ways of recovering it.
A
This alternative requires that you have a user that has shell log in activated.
- Log in via SSH with your user.
- Become root with the command su (password 'excito').
- Type the command 'passwd admin'.
- Now enter a new password (retype it when asked for).
- Also change the samba password with the following command:
smbpasswd admin
- Now enter a new samba administrator password (retype it when asked for).
- Finally type:
exit
reboot
Done!
B
If you do not have a user with shell access do like this.
- Download the latest install image: B3: update.excito.net/install/latest/b3 or B2: update.excito.net/install/latest/bubba-two/
- Unzip the downloaded zip file to a USB stick, there will be a catalog named 'install' in the root.
- In the catalog 'install' you will find a file called 'bubba.cfg', open it with an editor. Use for example www.contexteditor.org/ or www.flos-freeware.ch/notepad2.html. Using Windows Notepad or Wordpad will destroy the file. Edit the line DO_INSTALL to the following:
DO_INSTALL=0
- Shut down your unit and unplug the power cord.
- Connect the unit to your network (you must have a DHCP server other than B2/B3) via the LAN or WAN port.
- Insert your USB stick into one of the ports on your unit.
- Keep the button on the backside pressed while inserting the power cord. Keep it pressed for five seconds and then release it.
- After about 1 minute you will be able to reach your unit via the IP address given to the unit from your DHCP server.
- Login via SSH with username 'root' and password 'excito'.
- Type the following comands:
mount /dev/sda1 /mnt
chroot /mnt /bin/bash
passwd admin
- Now enter a new administrator password (retype it when asked for).
- Also change the samba password with the following command:
smbpasswd admin
- Now enter a new samba administrator password (retype it when asked for).
- Finally type:
exit
reboot
Done!