Linux STB root passwd
I have be using a linux set-top-box for a few years. It has a HDD bay, usb port and TV tuner for recording HDTV programmes and playing media files. It runs a kind of linux that has only very limited os features. Commands are mostly from busybox. It also has LAN port to connect to internet but I didn't use it until recently. The problem is that its root does not have password set. I am trying to set up a password for root but encountered the follow problems:
1. I am able to telnet to it and use "passwd" command trying to set password for root. After input new password twice, it failed with "segmentation fault". I then retry after "mount -o remount,rw /" but same result. What's wrong?
2. Failed to use command, I turned to "vi passwd". Its first list is "root::0:0:....". So I insert a password between the first "::" and save. After that, I am not able to logon again. Have to flash the firmware again. I understand this is a proper way to add password for users. But why it didn't work for root?
3. Its firmware is flashed by using usb with a install.img file. I use 7zip to open it and managed to locate the "passwd" file. I can change it to add password for root. But I don't know if I can use 7zip to re-pack it and rename it to .img. Will it works if I do it in Windows? Or must I do it in linux? What is the proper way to modify the img?
4. Is there any other way to add password for root?
5. Where should I look for if I want to add/install software to img? or to HDD?
Please help.
|