2016年2月6日土曜日

TeraStation TS5000 : How to obtain the root privilege

Here is the note to how to obtain the root privilege on the TeraStation which is provided by Buffalo.
All procedure is shown in below movie.






Procedure is very easy.
  1. Connect LCD and keyboard to TeraStation. And check that your LCD and keyboard works properly with TeraStation.
  2. Shutdown the system manually.
  3. Connect USB flash to USB port of TeraStation. which is a bootable USB. Here I used Knoppix.
  4. Get into the BIOS menu. And configure to boot from USB device. By this result, your system will boot as normal linux system instead of TeraStation system.
  5. logging into console of linux. If your user is not root when you login to linux system, you need to become root user. Here I used "sudo -s" command.
  6. Confirm that all HDD devices are recognized on your system.
    Note : if linux version is old, possibly neccesarily driver is not exist. Then you couldn't see any HDD device on that system. In that case, I recommend to use another linux distribution.
  7. Assemble RAID which are used as system volume on TeraStation. You can assemble those volume by sdx1 and sdx2 of the HDD which used on TeraStation.
  8. As a result of assemble, you'll be able to see md0 and md1. md1 is the target RAID volume. you need to mount this volume. Here, I mounted as "RAID-array1".
  9. move to /RAID-array1. then modify ./etc/shadow to change password of root user as known password. Here, I just copy the line of "admin" user. And then change its user name to "root". By this result, password for "root" user becomes same password to "admin" user.
  10. sync and unmount the mounted RAID devices. then reboot the system as TeraStation system.
  11. when console will be displayed, now you can login to TeraStation system as root. username and password will be "root" and "password". "password" is a default password of "admin" user.
  12. I recommend to you to change the password of "root" user to different string for your security.


When you get root privilege, you'll be able do various things. For example, TeraStation itself doesn't support plex server functionality. But if I could get proper binary, I could run it on TeraStation.
Modify the system of TeraStation, add owncloud, anything possible.
There seems telnet command is existed. So you can run telnet and access via telnet remotely.


TeraStation is a compact storage platform. So it'll be better to use PC server type computer, if you could do the things you want to do on this hardware. Now you have a freedom.




Swimming bird, now you have a freedom.
Spike.

0 件のコメント:

コメントを投稿