since today I am owner of an TS-XL/R5 NAS and still waiting for the RAID 5 to complete syncing which will take nearly 30 hours
So I decided to check out how to get root access on this device to modify it a little bit, since I noticed this wasn't possible anymore from an older FW till now. My goal was to run the PS3 Media Server (DLNA) because I couldn't get the built-in one to work with my Samsung D6200 Smart TV for MKV streaming. The Samsung AllShare SOftware works but unfortunately is only available for Windows at the moment and I don't wanted to always have my Laptop running.
Anyway it worked for me with some collected information from all over the web which I wanted to share with you guys. That was the reason for my registration here!
Thanks to all users from all over the web who contributed and especially to "liberado" for his nice findings.
I've merged everything together...
ROOT @ TERASTATION 3 TS-XL/R5 (FW1.57)
- Download: http://downloads.buffalo.nas-central.or ... mander.jar
Execute the following commands and replace NAS_IP, ADMINPASSWORD & NEWROOTPASS!
- NAS_IP is the IP of your NAS
- adminpassword is the login password for the webinterface
- newrootpass will be the new root password for the system
1. java -jar acp_commander.jar -t NAS_IP -ip NAS_IP -pw adminpassword -c "(echo newrootpass;echo newrootpass)|passwd"
2. java -jar acp_commander.jar -t NAS_IP -ip NAS_IP -pw adminpassword -c "echo 'UsePAM no' >>/etc/sshd_config"
3. java -jar acp_commander.jar -t NAS_IP -ip NAS_IP -pw adminpassword -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config"
4. java -jar acp_commander.jar -t NAS_IP -ip NAS_IP -pw adminpassword -c "/etc/init.d/sshd.sh restart"
5. java -jar acp_commander.jar -t NAS_IP -c "/usr/sbin/telnetd" -ip NAS_IP
- Use a telnet client like PuTTy (check Telnet and select Port 23)
- Open CMD window / Shell
Pass: (just entered rootpass)
The login via SSH isn't working at this time because it's using it's own SSHD from /usr/local/sbin/sshd for which I couldn't find any sshd_config to enable root logins etc. Maybe someone knows how to find it? PS and TOP didn't show it. But I am not the unix geek. But since telnet is working which you can access via PuTTy everything is manageable.
In case you're also interested in getting the built-in DLNA server to work with more Receivers/Clients and to maximize it's opportunities you can simple enter the config URL for Twonky which is used by Buffalo by default. http://
This config helped me to get MKV (even 1080p 3D MKV) working with a special exception. I need to change the file format from .mkv to .avi which shouldn't be a huge problem:
ID:096 // this can be different for everyone
>> // do not comment this!
NA:Samsung UE55D6200 DLNA 1.5
HH:SEC_HHP_[TV]UE55D6200/1.0 // usually the TV's header, but optional
MT:mkv video/MP4V-ES // changing this to x-divx doesn't work
MT:avi,divx video/x-divx // adding mkv here won't have any effect
Try to change the Renderer in Twonky configuration (url above). If it seems write locked, take a look at the client-data file where the actually used renderer id is set like 003xxx. I set this to 003096 because my renderer is set to ID:096.
Regards from germany