[Bug 2679] New: ssh mux process (and maybe others) should perhaps cd /

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Feb 17 12:10:46 AEDT 2017


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.


More information about the openssh-bugs mailing list