Within in the sssd.conf
file, does anyone know what the syntax should be to allow me to switch between different login shells?
Thanks
example@example.com:~$ chsh -s /bin/zsh
Password:
chsh: user 'example' does not exist in /etc/passw
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityWithin in the sssd.conf
file, does anyone know what the syntax should be to allow me to switch between different login shells?
Thanks
example@example.com:~$ chsh -s /bin/zsh
Password:
chsh: user 'example' does not exist in /etc/passw
using override_shell
changed shell for everyone.
In AD you can add the unix shell it uses the attribute loginShell
Open the user in AD Users and Computers
click on the attribute tab and look for loginShell
and edit that to the desired shell for the user
then in sssd.conf I add the line
shell_fallback = /bin/zsh
that way if your user doesn't have a shell in AD they still get a shell.
I also did add ldap_schema = ad
to sssd.conf to force Active Directory schema.
systemctl stop sssd && rm -rf /var/lib/sss/db/* && systemctl restart sssd
, sss_cache -E
did NOT work), then logout and log back in before it got applied.
– bviktor
Nov 20 '19 at 13:57
You have to edit the file /etc/sssd/sssd.conf and override the default shell in the domain section of the file :
[domain/YOUR_DOMAIN]
override_shell = /bin/zsh
chsh: user 'example' does not exist in /etc/passwd
suggests that there is no user in/etc/passwd
which is correct. If you have a central container likeldap
that holds all objects like 'users', 'passwords', 'computers' etc.. then that's where you've to look for. What does/etc/nsswitch.conf
show? And you are better off asking your ldap admin to modify your shell. There might be restrictions. – Valentin Bajrami Jul 20 '16 at 7:49