[Bug 2860] New: "-lc" should be used for non-interactive session
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Fri Apr 20 18:47:08 AEST 2018
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: unassigned-bugs at mindrot.org
Reporter: tom.ty89 at gmail.com
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.
More information about the openssh-bugs
mailing list