how to determine the login shell?

Dan Kaminsky dan at doxpara.com
Sun Aug 18 20:44:14 EST 2002


js wrote:

> Hi,
>  
> Is it possible to determine the login shell (eg, /usr/bin/ksh or 
> /usr/ace/prog/sdshell) from the ssh client?
>  
> Is there a function call I can do or would I need to do this with a 
> packet_get_string?
>  
> TIA.

Login shell is placed in the environment variable SHELL, so 
getenv("SHELL") should return a pointer to whatever the user's shell is.

--Dan






More information about the openssh-unix-dev mailing list