v1.10.1: booterm runs shells as samkintop with login bash
This commit is contained in:
@@ -4,3 +4,10 @@ set -g mouse on
|
||||
setw -g mode-keys vi
|
||||
set -g status off
|
||||
set -g destroy-unattached off
|
||||
|
||||
# v1.10.1: shells drop privs to samkintop (uid 1000) so the terminal runs in
|
||||
# the user's environment, not root. `env HOME=… USER=…` is required because
|
||||
# su-exec only changes uid/gid — it leaves env intact, and tmux server runs
|
||||
# as root so HOME would otherwise be /root. bash -l then sources samkintop's
|
||||
# ~/.profile / ~/.bashrc to pick up PATH (nvm, ~/.local/bin, ~/.opencode/bin).
|
||||
set -g default-command "su-exec samkintop:samkintop env HOME=/home/samkintop USER=samkintop SHELL=/bin/bash bash -l"
|
||||
|
||||
Reference in New Issue
Block a user