Broadband-Hamnet™ Forum :: Firmware
Welcome Guest   [Register]  [Login]
 Subject :Safe Mode Change User Name?.. 2013-09-01- 08:50:06 
KD4E
Member
Joined: 2012-07-29- 13:39:05
Posts: 55
Location: Nevils in SE-Georgia, USA
 

These instructions explain how to change a forgotten password - what about a forgotten User Name, please?

http://hsmm-mesh.org/documentation/71-using-safe-mode-to-reset-a-forgotten-password.html

IP Logged
 Subject :Safe Mode Change User Name?.. 2013-09-01- 09:05:10 
wx5u
Member
Joined: 2013-01-02- 00:30:45
Posts: 188
Location: Austin, TX

The user name is usually "root," unless you've done something strange.

Once you're logged in with failsafe mode, you can probably look in /etc/password and all the user names will be there.  (Maybe.  That's the standard Linux setup, I haven't tried it on one of our routers.)

If you've somehow set another user name, you could probably change root's password, and then log in as root and figure out what user ID's are on the router.

Or just reload with the Installing Firmware with TFTP instructions. (Toward the bottom of the page.)


IP Logged
I'm not part of the development team, so take what I say with a grain of salt. I'm also easily confused.

Check out the free Wireless Networking Book
 Subject :Re:Safe Mode Change User Name?.. 2013-09-01- 11:11:48 
KD4E
Member
Joined: 2012-07-29- 13:39:05
Posts: 55
Location: Nevils in SE-Georgia, USA
 
Thanks for the assist. I used "less passwd" in /etc The only content refers to "nobody:*" followed by a five digit number twice then "nobody" again. What's it trying to tell me, please? Thanks again, David
IP Logged
 Subject :Re:Safe Mode Change User Name?.. 2013-09-01- 11:42:35 
KF5JIM
Future Astronaut
Joined: 2013-07-17- 12:13:36
Posts: 250
Location: Nederland

Username is root. Password is whatever you set it to be. If you forgot the password (or username), follow the instructions to put the router into failsafe mode and telnet into it.  Once you are in failsafe mode and mount the rootfs, type "cat /etc/httpd.conf" to see the username and password in plain text.

IP Logged
Last Edited On: 2013-09-01- 11:44:15 By KF5JIM for the Reason
My opinions and views expressed here are solely my own.
 Subject :Re:Safe Mode Change User Name?.. 2013-09-01- 11:48:33 
KD4E
Member
Joined: 2012-07-29- 13:39:05
Posts: 55
Location: Nevils in SE-Georgia, USA
 
There isn't a httpd.conf file in /etc Does that mean my old hsmm-mesh install has been corrupted? Perhaps I need to just reset the router to factory and install bbhn from there?
IP Logged
 Subject :Re:Safe Mode Change User Name?.. 2013-09-01- 12:11:00 
KF5JIM
Future Astronaut
Joined: 2013-07-17- 12:13:36
Posts: 250
Location: Nederland

It was present in that release too. After telnetting into the node, did you type "mount_root"? You will be presented with something similar:
root@KF5JIM-VPN-49:~# cat /etc/httpd.conf
/cgi-bin/setup:root:password
/cgi-bin/ports:root:password
/cgi-bin/admin:root:password

IP Logged
My opinions and views expressed here are solely my own.
 Subject :Re:Safe Mode Change User Name?.. 2013-09-01- 12:22:14 
KD4E
Member
Joined: 2012-07-29- 13:39:05
Posts: 55
Location: Nevils in SE-Georgia, USA
 

See what happens when one looks at the clutter and ignores the important text on the screen? Sigh ... that was it. BTW: A 30 second reset does nothing to the router. Interesting.

First router updated to BBHN second in-progress ...


Thanks!

IP Logged
Last Edited On: 2013-09-01- 13:03:20 By KD4E for the Reason
 Subject :Re:Safe Mode Change User Name?.. 2013-09-01- 12:27:51 
KF5JIM
Future Astronaut
Joined: 2013-07-17- 12:13:36
Posts: 250
Location: Nederland

Glad it worked out. If you ever wanted to change the username for the login screen (not the ssh login screen), this is where you would do that too.

IP Logged
Last Edited On: 2013-09-01- 12:31:08 By KF5JIM for the Reason
My opinions and views expressed here are solely my own.
 Subject :Re:Safe Mode Change User Name?.. 2013-09-01- 13:19:11 
ae5ae
Member
Joined: 2010-10-27- 00:47:17
Posts: 144
Location: Van Alstyne, TX
The 30-30-30 reset rule does NOT work with OpenWRT as there is no code in the "BIOS" nor the kernel to handle the WRT54G's reset button. I believe that it works for DD-WRT because their "BIOS" is different. (I know it's not a "BIOS" per se but most everyone understands that to be low-level code for the basic hardware.)
IP Logged
 Subject :Re:Safe Mode Change User Name?.. 2013-09-01- 13:20:46 
KD4E
Member
Joined: 2012-07-29- 13:39:05
Posts: 55
Location: Nevils in SE-Georgia, USA
 
Both routers are again talking to each other ... isn't reconciliation & restoration awesome? :-) Anyhow, next is to test some apps ... data, text, voice ... The Atlanta group is planning a demo at the Stone Mtn Fest in November - I plan to be there with these & have a Trendnet TV-IP110 camera I believe is supposed to work with BBHN. Sure appreciate the assist here on the Forum!
IP Logged
 Subject :Re:Re:Safe Mode Change User Name?.. 2013-09-01- 13:33:44 
KD4E
Member
Joined: 2012-07-29- 13:39:05
Posts: 55
Location: Nevils in SE-Georgia, USA
 

"Yeah, yeah, what he said!" as he struggled to understand it all.  :-)

That's actually very helpful to understand as I had thought that the router always had some low-level code below the OS which the 30-30-30 and 30-second resets addressed.

You all are giving me an education here!  Thanks!  David



[ae5ae 2013-09-01- 13:19:11]:

The 30-30-30 reset rule does NOT work with OpenWRT as there is no code in the "BIOS" nor the kernel to handle the WRT54G's reset button. I believe that it works for DD-WRT because their "BIOS" is different. (I know it's not a "BIOS" per se but most everyone understands that to be low-level code for the basic hardware.)

IP Logged
 Subject :Safe Mode Change User Name?.. 2013-09-01- 14:36:22 
wx5u
Member
Joined: 2013-01-02- 00:30:45
Posts: 188
Location: Austin, TX

If you just want to get the router back to a known state, the TFTP install is a bigger hammer and will probably get you into some routers that are too screwed up to log in to.

It works better if you're using a linux box, but it should work from Windoze as well. 

IP Logged
I'm not part of the development team, so take what I say with a grain of salt. I'm also easily confused.

Check out the free Wireless Networking Book
Page # 


Powered by ccBoard


SPONSORED AD: