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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20020817/67d60b01/attachment.html
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
>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. > >--DanThanks 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