Advertisement
Guest User

Rooting Shuttle Omninas KD20

a guest
Feb 5th, 2014
1,440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Rooting Shuttle Omninas KD20
  2. Thanks to asham.ca (source: http://asham.ca/hardware/2013/12/getting-root-and-sshd-on-boot-with-the-shuttle-omninas-kd20/)
  3.  
  4. - Go to Storage => Disk Manager (Web interface of your NAS)
  5. - Open your web console in firefox (https://developer.mozilla.org/en-US/docs/Tools/Web_Console) and execute the following commands
  6.  
  7. !!! Replace YOUR-NAS-IP with the IP of your NAS !!!
  8.  
  9. // Command for resetting the root-passwort to foobar
  10. $.ajax({
  11. type:"POST",
  12. url: 'http://YOUR-NAS-IP/action/healthy_action.php',
  13. cache: false,
  14. //data: "devName=sda"+$devName,
  15. data: "devName=/dev/sd; (echo \"foobar\nfoobar\n\" | sudo passwd root) ",
  16. success:function(data){
  17. console.log(data)
  18. }
  19. });
  20.  
  21. // Command for starting sshd
  22. $.ajax({
  23. type:"POST",
  24. url: 'http://YOUR-NAS-IP/action/healthy_action.php',
  25. cache: false,
  26. //data: "devName=sda"+$devName,
  27. data: "devName=/dev/sd; sudo /etc/rc.d/sshd.sh start",
  28. success:function(data){
  29. console.log(data)
  30. }
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement