OpenWrt Forum Archive

Topic: passwd crashed after installing loginutils

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
Does somebody know, how i can bring my /usr/bin/passwd up again?
It crashed down between using smbpasswd and installing loginutils

root@SR-71:/usr/bin# ls -l | grep "passwd"
?rwsrwsrwt 65535 -1       -1      4294967295 Jan  1  1970 passwd
-rwxr-xr-x    1 root     root        13635 Jun  5  2007 smbpasswd

I've never seen this before...
I can't remove it, replace it (cp -f) do a chmod, or chown. it seems as it is broken down.

don't know if this will help or not but my one says:

lrwxrwxrwx    1 root     root           17 Jun  1  2007 passwd -> ../../bin/busybox

thanks, but not really... sad
hm... normally i boot from an usb stick,
now, i tried to boot from rom mount it on /mnt and remove it

But, i can't delete this broken file/link!
Is there another way to delete broken files except of rm?

EDIT:
i detected more...

root@SR-71:/usr/bin# ls -l
[...]
?rwsrwsrwt 65535 -1       -1      4294967295 Jan  1  1970 md5sum
?rwsrwsrwt 65535 -1       -1      4294967295 Jan  1  1970 mesg
?rwsrwsrwt 65535 -1       -1      4294967295 Jan  1  1970 mkfifo
?rwsrwsrwt 65535 -1       -1      4294967295 Jan  1  1970 nc
?rwsrwsrwt 65535 -1       -1      4294967295 Jan  1  1970 nslookup
?rwsrwsrwt 65535 -1       -1      4294967295 Jan  1  1970 passwd
?rwsrwsrwt 65535 -1       -1      4294967295 Jan  1  1970 printf
[...]

(Last edited by spelth on 5 Jul 2007, 00:18)

Maybe the USB stick is corrupted? Did you try e2fsck?
I recently had a lot of file system errors on a WGT634U with boot from a USB stick, in one file I could notice some changed characters.
I think it happend after a thunderstorm, so maybe any voltage spikes were the cause?
My solution (via remote ssh): boot from flash only, overwrite usb stick with zeros (dd), fdisk, reformat, restore from backup with rsync, switch back to USB boot.
It is still working...
In the past, I had at least two USB sticks that ceased to function :-(
My main router is running for at least two years with a LaCie 40GB 2,5" disc, without any file system corruption. It survived changes from Olegs FW to openwrt, openwrt upgrades, and a change from WL-500gx to WGT634U (atheros wifi!)
Good old conventional storage ;-)

I copied the files except of the 7 broken on my laptop, formatted the stick, copied it back, and take the 7 files from rom and copied it on the stick... and it works wink

(Last edited by spelth on 5 Jul 2007, 13:11)

The discussion might have continued from here.