You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main driver for this issue is that inspec tests can return different results than manual ssh, since login shells will source the /etc/profile file.
@jonathanmorley I really like that option. I see the point that paths etc may not be loaded. I just want to make sure we keep the default as is and make this fully optional. If users need this behavior, he should have the power to do so 👍
Expected output
Login shell
Actual output
Not login shell
Since train 'logs in' to the remote host, and then runs commands against them, I would expect the resulting shells to be login shells.
I think a
login
parameter should be added to somehow force train to create a login shell (defaulted to false for backwards compatibility).The text was updated successfully, but these errors were encountered: