Hi all,
I'm out of ideas on how to regain root SSH access to my DS1511+ after an upgrade to DSM 4.0 and a subsequent attempt to reinstall ipkg.
Here is what happened:
- Under DSM 3.2 I had installed a number of ipkg packages, one of them being zsh. Unfortunately (now I know better) I have changed the root login shell to `/opt/bin/zsh` without creating a backup user with id 0.
- After the upgrade to DSM 4.0 I wanted to reinstall all my ipkg stuff from scratch and cleared out everything in /opt.
- I logged out.
Current status:
- I can't (SSH) login as root anymore, SSH always errors out with `/opt/bin/zsh: No such file or directory`.
- I can ssh in with the `admin` account, but since it doesn't have write access to most parts of the filesystem it's not of much use (still, I have read access to almost everything).
- The rest of the system is running nicely.
What I tried so far:
- ssh in as `admin` and `su <something>`: doesn't work since busybox cannot run su from a non-root account.
- `ssh root@host /bin/ash` doesn't work, since SSH still errors out with `/opt/bin/zsh: No such file or directory`.
- `scp fixedfile root@host:/etc/passwd` also fails with the same error.
Questions:
- Is there some known way to use the DSM web interface to fix `/etc/passwd` ?
- If there is no way to regain root SSH access without reinstalling the system, how do I best go about it with minimal reconfiguration effort and, of course, without loosing the contents of my data disks?
I'm seriously looking forward to any help on this...
Cheers,
Mathias



