Change user shell

Hello,

I used the instructions to create Private SMB Datasets and Shares at ht tps://www.truenas.com/docs/scale/25.04/scaletutorials/shares/smb/smbprivatedatasetshare/#adding-private-smb-datasets-and-shares

Now, when I SSH into the box using the Samba username/password, the shell used is /bin/sh I would like to change it to /bin/zsh.

I am unable do edit Active Directory users in the “Credentials → Users” section of the GUI (regular local users are ok, just the AD ones are read-only) so I cannot change the shell there.

Is there something else I can do? Even if it’s system wide I’m happy to change it (I was looking in System → General and System → Advanced to see if there a way to change the default shell for everyone, but found nothing).

There used to be an AD schema extension and management plugin allowing you to place things like Unix UID and GID, home directory path, shell, … in the AD.

As far as I know it is deprecated by Microsoft but there seem to be alternatives?

https://wiki.samba.org/index.php/Maintaining_Unix_Attributes_in_AD_using_ADUC