https://bugzilla.mindrot.org/show_bug.cgi?id=2860
Bug ID: 2860
Summary: "-lc" should be used for non-interactive session
Product: Portable OpenSSH
Version: 7.7p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: [email protected]
Reporter: [email protected]
https://github.com/openssh/openssh-portable/blob/V_7_7/session.c#L1668
In interactive sessions, the shell would be started as "login shell",
/etc/profile (or zprofile in the case of zsh) would be sourced.
However, when user instructs ssh to execute a command with a
non-interactive session, because the shell is started without -l / --
login, the profile files would not be sourced, which leads to
inconsistency among the two types of sessions (typically missing
expected environment variables in the non-interactive session).
Is there any reason that the shell in a non-interactive session should
not be started as "login shell"?
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs