0

How to use zsh as default when starting an ssh session to a remote chef server using LDAP for authentication?

tom@chef:~$ chsh -s /usr/bin/zsh
Password:
chsh: user 'tom' does not exist in /etc/passwd

Zsh is installed on the system.

cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/bin/bash
/bin/rbash
/bin/dash
/usr/bin/tmux
/usr/bin/screen
/bin/zsh
/usr/bin/zsh
  • Do you have a chsh.ldap command? see manpages.ubuntu.com/manpages/bionic/man1/chsh.ldap.1.html – Bodo Feb 19 at 17:53
  • @Bodo do I have to run it on the target server I want to switch to zsh on? chsh.ldap -s /usr/bin/zsh returns Segmentation fault (core dumped) – Tom M Feb 19 at 17:59
  • You have to run it on the system that shows the error message in the question. Does chsh.ldap -h or chsh.ldap -l work? Was the command already available or did you install it just now? – Bodo Feb 19 at 18:08
  • @Bodo -h and -V work. -l errors out with a Segmentation fault aswell. It was installed on the system already. – Tom M Feb 19 at 18:10
  • Sorry, I don't know why this program crashes with a Segmentation fault. – Bodo Feb 19 at 18:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.