I wanted to change the standard shell for my root user to bash but I got the path wrong. i typed /bin/bash instead of /opt/bin/bash. Now my /etc/passwd looks like this:root:x:0:0:root:/root:/bin/bashThe problem is that I can no longer login via ssh. Additionally I can't su to root from an other user because of: >su rootsu: must be suid to work properly Any suggestions?
Wrong root shell in /etc/passwd
linux;shell;ssh
Even though these appliance type products are based on Linux it's generally a good idea not to try and customize them as though they're Linux boxes. They typically are missing most of the tools and are usually stripped down in various ways which can make this dangerous.I've had experience with both Netgear's ReadyNAS box as well as the Thecus boxes and this has always been the case with both these types of products. You might want to consider doing a factory restore to get this back normal instead of hacking it your self. You'll have to reconfigure the box but this is usually just setting the IP back up and potentially some user account creation.I direct you to the actual pages from Synology that cover how to accomplish this:How to Reset the Synology SystemHow do I login if I forgot the admin password?