Restore passwd for root on a server
Posted
by s.mihai
on Server Fault
See other posts from Server Fault
or by s.mihai
Published on 2010-06-10T14:25:54Z
Indexed on
2010/06/10
14:33 UTC
Read the original article
Hit count: 375
Hello,
I have a DVR server with linux embeded. It has some telnet functions but i don't have the password for it (the chinese manufacturer refuses to give me the password). I did get a upgrade folder from them and found a passwd file inside.
So i assume that when i upgrade the firmware the password in that file will be used.
Now i am trying to modify the file so taht i can insert a password i already know.
The problem is that i don't know how to create the password hash from what i figured the password hash is $1$1/lfbDKX$Hmd.FqzB8IZEohPesYi961
The file is named rom.ko and i found a command
telnetd /mnt/yaffs/web/boa -c /mnt/yaffs/web & /bin/cp -f /mnt/yaffs/rom.ko /etc/shadow
in a script file so i assume this is the right way.
Can you help me reconstruct a password that i know already? Tell me how or make one for me :) ?...
passwd file:
root:$1$1/lfbDKX$Hmd.FqzB8IZEohPesYi961:0:0:99999:7:-1:-1:33637592
bin::10897:0:99999:7:::
daemon::10897:0:99999:7:::
adm::10897:0:99999:7:::
lp::10897:0:99999:7:::
sync::10897:0:99999:7:::
shutdown::10897:0:99999:7:::
halt::10897:0:99999:7:::
mail::10897:0:99999:7:::
news::10897:0:99999:7:::
uucp::10897:0:99999:7:::
operator::10897:0:99999:7:::
games::10897:0:99999:7:::
gopher::10897:0:99999:7:::
ftp::10897:0:99999:7:::
nobody::10897:0:99999:7:::
next::11702:0:99999:7:::
© Server Fault or respective owner