Perhaps in the course of running a SLUG, one might accidentally change the passwd for root, and then forget what the change was. The slight possibilty of this ever happening might preclude others from ever writing a HowTo on the subject, but here at NSLU2-Linux we believe in being complete. So the author offers up his humble procedure, that if executed will get your root passwd rest rather quickly.
Platform: Unslung 3.18 beta
Steps:
- Turn off the SLUG using the power button.
- Start up a Linux machine (my laptop dual boots to Ubuntu)
- After Linux boots on the other machine, plug in the unslung hard disk.
- Mount the harddrive conf partition in the linux partition(Ubuntu automounts an attached HD to /media)
- Use your favorite editor to edit the passwd file [on most distributions it is /etc/passwd]
Before: root:fobaVWfDOzVIs:0:0:root:/root:/bin/sh
After: root::0:0:root:/root:/bin/sh
- Save the passwd file.
- Unplug the USB Hard drive from the Linux machine
- Plug harddrive back in to SLUG and restart the SLUG
- Enable Telnet if you don't have SSH or someother terminal acces
Safety Note: wouldn't be a bad idea to do this while not connected to the internet...
- Change the root passwd using ChangePasswordsFromTheCommandLine
fin.
- - -
Note that this method does not work on Unslung 5.5beta.
Telnet will throw you out if you attempt to login as root with the user password field empty.
Question: Would re-slinging reset the password files?