how to determine the login shell?

J S vervoom at hotmail.com
Sun Aug 18 21:16:00 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

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. 
http://www.hotmail.com




More information about the openssh-unix-dev mailing list