Hi,
dl wrote:I just had the same issue. SSH was working fine but root password suddenly doesn't work anymore. Went to failsafe but can't access from lan even after clearing arp cache. Managed to get in from wireless side (in failsafe) but when I re-enter the passwd I get an error updating passwd file. Mounted the jffs and still get the same error. Probably a simple solution but I'm clueless here.
Same problem here, I can reach the gs in failsafe mode but can't change the root password.
[edit]
Solved, mount_root worked flawlessly, then I used the password line mentionned at the end of this page :
http://rotz.org/archives/2005/03/openwrt_root_pa.html
After reboot, I was then able to log in and then upgrade to RC4
[/edit]
I've tried available howtos to reset root password, but none has worked till now (the main problem is that I can't mount / read write to change /etc/passwd)
Is there any way to mount / rw or is it easier to upgrade to the lastest RC available ?
Some more information regarding the settings :
BusyBox v1.00 (2005.07.14-12:13+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
WHITE RUSSIAN (RC1) -------------------------------
* 2 oz Vodka Mix the Vodka and Kahlua together
* 1 oz Kahlua over ice, then float the cream or
* 1/2oz cream milk on the top.
---------------------------------------------------
root@OpenWrt:/# ps ax
PID Uid VmSize Stat Command
1 root 392 S init
2 root SW [keventd]
3 root RWN [ksoftirqd_CPU0]
4 root SW [kswapd]
5 root SW [bdflush]
6 root SW [kupdated]
7 root SW [mtdblockd]
14 root 424 S /bin/sh /etc/preinit noinitrd
41 root 384 S syslogd -C 16
45 root 340 S klogd
50 root 392 S init
752 nobody 432 S dnsmasq -l /tmp/dhcp.leases -K -F 192.168.1.100,192.1
766 root 420 S /usr/sbin/dropbear
767 root 388 S httpd -p 80 -h /www -r WRT54G Router
829 root 324 S telnetd -l /bin/login
1004 root 472 S /bin/ash --login
1124 root 384 R ps ax
root@OpenWrt:/# mount
/dev/root on / type jffs2 (ro)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /tmp type tmpfs (rw,nosuid,nodev)
none on /dev/pts type devpts (rw)
root@OpenWrt:/# ls -al /dev/mtd/*
crw-rw-rw- 1 root root 90, 0 Jan 1 1970 /dev/mtd/0
cr--r--r-- 1 root root 90, 1 Jan 1 1970 /dev/mtd/0ro
crw-rw-rw- 1 root root 90, 2 Jan 1 1970 /dev/mtd/1
cr--r--r-- 1 root root 90, 3 Jan 1 1970 /dev/mtd/1ro
crw-rw-rw- 1 root root 90, 4 Jan 1 1970 /dev/mtd/2
cr--r--r-- 1 root root 90, 5 Jan 1 1970 /dev/mtd/2ro
crw-rw-rw- 1 root root 90, 6 Jan 1 1970 /dev/mtd/3
cr--r--r-- 1 root root 90, 7 Jan 1 1970 /dev/mtd/3ro
root@OpenWrt:/# ls -al /dev/mtdblock/*
brw-rw-rw- 1 root root 31, 0 Jan 1 1970 /dev/mtdblock/0
brw-rw-rw- 1 root root 31, 1 Jan 1 1970 /dev/mtdblock/1
brw-rw-rw- 1 root root 31, 2 Jan 1 1970 /dev/mtdblock/2
brw-rw-rw- 1 root root 31, 3 Jan 1 1970 /dev/mtdblock/3
root@OpenWrt:/# ls -al
drwxr-xr-x 1 root root 0 Jun 25 2005 .
drwxr-xr-x 1 root root 0 Jun 25 2005 ..
drwxr-xr-x 1 root root 0 Jul 16 2005 bin
drwxr-xr-x 1 root root 0 Jan 1 1970 dev
drwxr-xr-x 1 root root 0 Jan 1 00:03 etc
drwxr-xr-x 1 root root 0 Jul 16 2005 lib
dr-xr-xr-x 26 root root 0 Jan 1 00:00 proc
drwxr-xr-x 1 root root 0 Apr 20 2005 rom
drwxr-xr-x 1 root root 0 Jul 16 2005 sbin
drwxrwxrwt 4 root root 100 Jan 1 00:00 tmp
drwxr-xr-x 1 root root 0 Jun 25 2005 usr
lrwxrwxrwx 1 root root 4 Jul 16 2005 var -> /tmp
drwxr-xr-x 1 root root 0 Feb 6 2005 www
root@OpenWrt:/#
Regards
Eric Masson
(Last edited by emss on 18 Feb 2006, 18:11)