From c040b267cf4129e4182288eb6021efe18bc07976 Mon Sep 17 00:00:00 2001 From: Roland Grunberg Date: Mon, 23 Mar 2026 12:56:26 -0400 Subject: [PATCH] Ensure connected SSHD session inherits PATH from parent process. Signed-off-by: Roland Grunberg --- build/scripts/sshd.start | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/scripts/sshd.start b/build/scripts/sshd.start index c89a2220a44..ea1ef7bd223 100755 --- a/build/scripts/sshd.start +++ b/build/scripts/sshd.start @@ -65,10 +65,10 @@ fi # Common tools needed to set up service mkdir -p $HOME/bin cp $sshd_libdir/tar $sshd_libdir/gzip $sshd_libdir/which $HOME/bin/ -echo 'export PATH=$PATH:$HOME/bin' >> $HOME/.profile # Set up environment variables injected into PID 1 (.profile & .bashrc) -env | grep -v 'PATH=' | sed 's|^|export |' >> $HOME/.profile +env | sed 's|^|export |' >> $HOME/.profile +echo 'export PATH=$PATH:$HOME/bin' >> $HOME/.profile cat $HOME/.profile >> $HOME/.bashrc # Configure SSHD as non-root user