Subject: Re: sshd doesn't let me in
To: Jeremy C. Reed <reed@reedmedia.net>
From: Rudi Ludwig <rudihl@gmx.de>
List: netbsd-help
Date: 04/30/2005 16:02:40
On Thu, 28 Apr 2005 12:51:12 -0700 (PDT)
"Jeremy C. Reed" <reed@reedmedia.net> wrote:

> On Thu, 28 Apr 2005, Rudi Ludwig wrote:
> 
> > useradd -s ksh ...... <user>
> 
> You should use full path to your shell, such as:
> 
> useradd -s /bin/ksh ...... <user>
> 
>  Jeremy C. Reed
> 
>  	  	 	 BSD News, BSD tutorials, BSD links
> 	  	 	 http://www.bsdnewsletter.com/
> 

Well, exactly that has been the root cause.

So, not only should one use the full path, one has to.
It seems, supplying only the programm name works on the console
because the/a PATH is already set and therefore the shell is found.
While the sshd cannot find the shell-program without the full path
and therefore one cannot log-in.

Interestingly chsh completes the shell-name to the full path
-piped through which (?)- when used to change the user-shell.
e.g. doing: "chsh -s ksh" changes to  ... :/bin/ksh in /etc/passwd.

Regards

Rudi