Tuesday, August 5, 2014

log in to buffalo nas ls vl 1 TB as root

More detailed information can be found at http://buffalo.nas-central.org/wiki/Open_Stock_Firmware_LS-VL

If below error is shown by acp_commander, try plugging  in NAS ethernet cable to a different ethernet port in router.

A SocketTimeoutException usually indicates bad firewall settings.
Check especially for *UDP* port 22936 and make sure that the connection to your LS is working.
ERROR: Exception: SocketTimeoutException (Receive timed out) [ACP Send/Receive (Packet:8020 = ACP_Discover)]

1. Reset root password to abc123

java -jar acp_commander.jar  -t 192.168.1.3 -ip 192.168.1.3 -pw password -c "(echo abc123; echo abc123) | passwd"

2. Backup sshd_config file

java -jar acp_commander.jar  -t 192.168.1.3 -ip 192.168.1.3 -pw password -c "cp -p /etc/sshd_config /etc/sshd_config.orig"

3. Change PermitRootLogin to yes

java -jar acp_commander.jar  -t 192.168.1.3 -ip 192.168.1.3 -pw password -c "sed -i '/PermitRootLogin/s/no/yes/' /etc/sshd_config"

4. Restart sshd  service

java -jar acp_commander.jar  -t 192.168.1.3 -ip 192.168.1.3 -pw password -c "/etc/init.d/sshd.sh restart"


Information about the tested system,

from dmesg output or cat /proc/version,
Linux version 3.3.4-88f6281 (root@build2.dd-hot24.nas.buffalo.local) (gcc version 4.2.0 20070413 (prerelease)) #1 Tue Jul 9 14:48:53 JST 2013

from uname -a output,
Linux LS-VL406 3.3.4-88f6281 #1 Tue Jul 9 14:48:53 JST 2013 armv5tel unknown

No comments:

Post a Comment