Root access Buffalo Linkstation

Root access Buffalo Linkstation, 9.0 out of 10 based on 1 rating
VN:F [1.9.22_1171]
Rating: 9.0/10 (1 vote cast)

First of all you need a tool called “acp_commander”. It’s a small java commandline script. So you’re going to need java installed. You could simply check if you have it installed by entering “java” in your cmd.exe.

The following commands worked well with Buffalo Linkstation Pro (firmware 1.64) installed:

Execute them at your own risk!

exchange 192.168.0.104 into the ip of your linkstation,
exchange “password” into the password that you use for the web interface
exchange “newpasswd” into the password that you like to use

java -jar acp_commander.jar -t 192.168.0.104 -ip 192.168.0.104 -pw password -c “(echo newpasswd;echo newpasswd)|passwd”

java -jar acp_commander.jar -t 192.168.0.104 -ip 192.168.0.104 -pw password -c “sed -i ‘s/UsePAM yes/UsePAM no/g’ /etc/sshd_config”

java -jar acp_commander.jar -t 192.168.0.104 -ip 192.168.0.104 -pw password -c “sed -i ‘s/PermitRootLogin no/PermitRootLogin yes/g’ /etc/sshd_config”

java -jar acp_commander.jar -t 192.168.0.104 -ip 192.168.0.104 -pw password -c “/etc/init.d/sshd.sh restart”

After that the Linkstation was able to be accessed by putty (root:newpasswd).

 

This entry was posted in Personal. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>