judge146 wrote:I added the line exec /opt/bin/bash to the .profile file of the root-user. However, now I am unable to login as root anymore. The error message "-ash: exec: line 22: /opt/bin/bash: not found" is displayed in the terminal window and the session is ended. Can you please help me out?
Hmm... it seems that you don't have /opt/bin/bash available.
I was surprised that the 'exec' instruction did not stop when it detected that the command was not existing. I tested with my DS and it is unfortunately true: normally on a sane Linux distro exec would avoid to exit the current shell if the command request fails:
bash: /opt/bin/notexistingshell: No such file or directory
Connection closed by foreign host.
but Synology is using busybox, and it seems busybox doesn't implement this safety net.
I'm very sorry for the issue. I'll try to come up with some trick in order to recover the situation.
BTW, could you please tell me which model of DS do you have?