Happy New Year b.t.w.
Problem
After installing the Git package on a Synology NAS I found out that the shell login was broken:
X11 forwarding request failed on channel 0 fatal: Interactive git shell is not enabled. hint: ~/git-shell-commands should exist and have read and execute access.
Just creating ~/git-shell-command lead to being forced to a – not working – git prompt.
Solution
ssh as system user to the server, edit /etc/password and change back the default shell from
/var/packages/Git/target/bin/git
to
/bin/sh
Discussion
As it seems, the people at Synology scrambled things up a bit: Not only it’s rather questionable if it’s a good idea to change the default shell for users w/ shell access with installing a version control system (even if it’s Git which reals powers do shine at the command line). They made it worse to not create a command filled directory ~/git-shell-commands for each user that got her/his default shell changed.
(-1) against Synology.
Leave a Reply