You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ssh/tailssh
Percy Wegmann 4b525fdda0 ssh/tailssh: only chdir incubator process to user's homedir when necessary and possible
Instead of changing the working directory before launching the incubator process,
this now just changes the working directory after dropping privileges, at which
point we're more likely to be able to enter the user's home directory since we're
running as the user.

For paths that use the 'login' or 'su -l' commands, those already take care of changing
the working directory to the user's home directory.

Fixes #13120

Signed-off-by: Percy Wegmann <percy@tailscale.com>
3 months ago
..
testcontainers ssh/tailssh: only chdir incubator process to user's homedir when necessary and possible 3 months ago
incubator.go ssh/tailssh: only chdir incubator process to user's homedir when necessary and possible 3 months ago
incubator_linux.go ssh/tailssh: fall back to using su when no TTY available on Linux 6 months ago
privs_test.go ssh/tailssh: only chdir incubator process to user's homedir when necessary and possible 3 months ago
tailssh.go cmd/k8s-operator,k8s-operator/sessionrecording,sessionrecording,ssh/tailssh: refactor session recording functionality (#12945) 4 months ago
tailssh_integration_test.go ssh/tailssh: only chdir incubator process to user's homedir when necessary and possible 3 months ago
tailssh_test.go cmd/k8s-operator,k8s-operator/sessionrecording,sessionrecording,ssh/tailssh: refactor session recording functionality (#12945) 4 months ago
user.go ssh/tailssh: try fetching group IDs for user with the 'id' command 7 months ago