[Samba] Unable to ssh to dc

Rowland Penny rpenny at samba.org
Tue Jun 13 18:46:51 UTC 2023



On 13/06/2023 19:08, Rob Campbell via samba wrote:
>>
>> Before we get really involved here, can we just check it isn't something
>> easy.
>> By default a Samba AD DC has this default line (it is there, even if it
>> doesn't show in your smb.conf):
>>
>> template shell = /bin/false
>>
>> With that, you cannot logon as a domain user
>>
>> So you need to set something like:
>>
>> template shell = /bin/bash
>>
> 
> Prior to my last email, it didn't have a template shell variable at all so
> I added
> template shell = /bin/bash
> template homedir = /home/%U
> 
> I then restarted samba and I was still unable to ssh in. I then added the
> two packages and I was able to getent passwd newtestuser but still unable
> to ssh in.  I can ssh in with a local user account but I think I mentioned
> that already.

What OS are you running ?
Does the directory /home/newtestuser exist ? Or do you need to get your 
distro to create it at the users first logon ?

Also have you checked if winbind is actually running:
ps ax | grep 'winbind'

Rowland




More information about the samba mailing list