bugzilla-daemon at bugzilla.mindrot.org
2017-Feb-17 01:10 UTC
[Bug 2679] New: ssh mux process (and maybe others) should perhaps cd /
https://bugzilla.mindrot.org/show_bug.cgi?id=2679 Bug ID: 2679 Summary: ssh mux process (and maybe others) should perhaps cd / Product: Portable OpenSSH Version: 7.4p1 Hardware: Other OS: All Status: NEW Severity: enhancement Priority: P5 Component: ssh Assignee: unassigned-bugs at mindrot.org Reporter: calestyo at scientia.net Hey. I've just noted the following, from a temporarily mounted fs e.g. /mnt/... I SSH'ed to some server and during that a mux process was spawned. While the socket was in ~/.ssh/something, the mux process had still its CWD in /mnt/... and thus the fs couldn't be unmounted. I'd guess the same happens in other cases where some ssh session is made and where it rather goes into a background-like operating schema, e.g. when setting up forwardings with -N and &. Now the idea of this report would be, that it may be nice to change the CWD to e.g. / in such cases, though some expert should carefully consider whether this may have any side effects. E.g. for everything in SSH where the CWD has an effect, this should probably NOT be done... scp/sftp is the obvious example, but there's also e.g. LocalCommand which may be affected by this (and perhaps also in the MUX case). Cheers, Chris. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2017-Feb-17 09:56 UTC
[Bug 2679] ssh mux process (and maybe others) should perhaps cd /
https://bugzilla.mindrot.org/show_bug.cgi?id=2679 Bert Wesarg <Bert.Wesarg at googlemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Bert.Wesarg at googlemail.com --- Comment #1 from Bert Wesarg <Bert.Wesarg at googlemail.com> --- duplicate of 1902? -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2019-Jul-19 05:31 UTC
[Bug 2679] ssh mux process (and maybe others) should perhaps cd /
https://bugzilla.mindrot.org/show_bug.cgi?id=2679 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED CC| |djm at mindrot.org --- Comment #2 from Damien Miller <djm at mindrot.org> --- *** This bug has been marked as a duplicate of bug 1902 *** -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2021-Apr-23 05:08 UTC
[Bug 2679] ssh mux process (and maybe others) should perhaps cd /
https://bugzilla.mindrot.org/show_bug.cgi?id=2679 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Damien Miller <djm at mindrot.org> --- closing resolved bugs as of 8.6p1 release -- You are receiving this mail because: You are watching someone on the CC list of the bug. You are watching the assignee of the bug.
Seemingly Similar Threads
- [Bug 1883] New: use setproctitle for persistent mux master
- [PATCH] mux: fix memory leak of control path if bind() fails
- [PATCH] ssh: set proctitle for mux master
- [Bug 1902] New: persistent mux master should chdir away from the current directory
- [PATCH] fix copy'n'paste error in PROTOCOL.mux