how to determine the login shell?
Dan Kaminsky
dan at doxpara.com
Sun Aug 18 21:40:55 EST 2002
> 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.
Ahhh, OK. I see your problem: SSH doesn't (and better not)
back-propogate remote environment variables into the client.
It does let you execute commands on the remote host, though. What about
executing "sh -c echo $SHELL"? sh is universal(as is its variable
representation), and the execution of it thus does not overwrite the
$SHELL from the spawning shell.
--Dan
More information about the openssh-unix-dev
mailing list