how to determine the login shell?

J S vervoom at
Sun Aug 18 21:16:00 EST 2002

>js wrote:
>>  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 
>>  TIA.
>Login shell is placed in the environment variable SHELL, so getenv("SHELL") 
>should return a pointer to whatever the user's shell is.

Thanks Dan, I tried that but the problem is it if I issue that command from 
the client, it doesn't tell me the login shell of the remote user, it tells 
me the login shell of the client user.

Join the world’s largest e-mail service with MSN Hotmail.

More information about the openssh-unix-dev mailing list