On Fri, 15 Oct 2021 at 13:15, mike tancsa <mike@xxxxxxxxxx> wrote: [...] > OK, I think its related to these settings. On my RELENG_13 box, if I set > these vals, the sftp fails > > sftp-server[22121]: fatal: unable to make the process untraceable: No > such process > > sysctl -w security.bsd.see_other_uids=0 > sysctl -w security.bsd.see_other_gids=0 The call is: procctl(P_PID, 0, PROC_TRACE_CTL, &disable_trace) The second argument is PID, presumably pid 0 is an alias for its own pid although the man page does not mention this. Does it work if you replace the 0 with getpid() ? -- Darren Tucker (dtucker at dtucker.net) GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA (new) Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement. _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev