Azure / azure-linux-extensions

Linux Virtual Machine Extensions for Azure
Apache License 2.0
308 stars 255 forks source link

AADLoginForLinux: configure default shell on Debian9 #1197

Open marcoboffi opened 4 years ago

marcoboffi commented 4 years ago

Hi all, I installed AADLoginForLinux extension on Debian 9 and it works but VM prompt with Bourne shell (/bin/sh) when I login with ssh command. When I login with 'adminuser' by sshkey, VM prompt with Bash shell(/bin/bash) instead. Default shell for new user is set to /bin/bash. Why a user enabled with AAD credentials have Bourne shell? Is it possible to change this behaviour? I tried with chsh command but it does not work with this error message: [user 'username@contoso.com' does not exist in /etc/passwd]_

jmtsc commented 4 years ago

Hi @marcoboffi

The user creation works fine for me - the same shell as in /etc/default/useradd is being assinged. If you want to look up your user you can use "getent passwd user@domain.xxx" command.

Let me know if that helps.