Changing the login shell of a user with syno* tools?
Do you happen to know if any of the syno* command line tools allow you to change the login shell of a user?
sh-4.3# synouser --get wuseman
User Name : [wuseman]
User Type : [AUTH_LOCAL]
User uid : [1026]
Primary gid : [100]
Fullname : []
User Dir : [/var/services/homes/wuseman]
User Shell : [/bin/sh] <===== HERE
Expired : [false]
User Mail : []
Alloc Size : [82]
Member Of : [2]
(100) users
(101) administrators
For what it's worth, manually fiddling with /etc/passwd (like one would on a normal, non-Synology OS) doesn't work with the latest DSM versions, at least from what I can tell. And standard tools like chsh don't exist on the Synology NAS.
any solution to this?
Any solution? Changing the /etc/passwd makes it impossible to ssh so looking for "The Syno Way"...
Any solution? Changing the
/etc/passwdmakes it impossible tosshso looking for "The Syno Way"...
@ThomasDalla - just found this out the hard way. What was your solution to changing the /etc/passwd file back? Syno make it quite hard to edit these sort of files from their desktop!
@jt196 I was able to reset the /etc/passwd file by creating a new test user through DSM Control Panel > User & Group, which fixed ssh access for me.
FYI this worked for me. Which was to:
- Create a file named
.profilein the user folder - Append the following text:
if [[ -x /usr/local/bin/zsh ]]; then
export SHELL=/usr/local/bin/zsh
exec /usr/local/bin/zsh
fi
- Log out, log in and everything should work ok. All the files are in the user home as well, so easily accessible.
Thanks for sharing this info, @jt196. The link you mentioned above about installing Oh My ZSH on Synology is broken, however. The working one is: https://3os.org/infrastructure/synology/Install-oh-my-zsh/