You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For security reasons it is a best practice to mount /tmp directory with noexec flag (preventing execution from files in /tmp directory)
unfortunately this prevents chezmoi to run my post install scripts./
Run chezmoi apply or chezmoi update with a repository that has scripts and have /tmp mounted with noexec flag
Expected behavior
Configure an alternate location to execute the script from.
Output of chezmoi doctor
~ ❱ chezmoi doctorRESULT CHECK MESSAGEwarning version v2.9.5, built at 2022-01-06T18:59:24Zok os-arch freebsd/amd64 (FreeBSD 13.0-RELEASE-p5)ok go-version go1.17.6 (gc)ok executable /usr/local/bin/chezmoiok config-file ~/.config/chezmoi/chezmoi.tomlok source-dir ~/.local/share/chezmoi is a directoryok suspicious-entries no suspicious entriesok working-tree ~/.local/share/chezmoi is a directoryok dest-dir ~ is a directoryok shell found /usr/local/bin/fishok edit-command found /usr/local/bin/vimok umask 022ok git-command found /usr/local/bin/git, version 2.35.1ok merge-command found /usr/local/bin/vimdiffinfo age-command age not found in $PATHok gpg-command found /usr/local/bin/gpg, version 2.3.3info pinentry-command not setinfo 1password-command op not found in $PATHinfo bitwarden-command bw not found in $PATHinfo gopass-command gopass not found in $PATHinfo keepassxc-command keepassxc-cli not found in $PATHinfo keepassxc-db not setinfo lastpass-command lpass not found in $PATHinfo pass-command pass not found in $PATHinfo vault-command vault not found in $PATHinfo secret-command not set
The text was updated successfully, but these errors were encountered:
If a script is a template or encrypted, then chezmoi needs to write the script's contents somewhere so it can be executed, and the temporary directory is the logical place to write such temporary files.
In the short term you can set the $TMPDIR environment variable to point to an alternative temporary directory on a filesystem mounted with the exec option, e.g.
Describe the bug
For security reasons it is a best practice to mount /tmp directory with noexec flag (preventing execution from files in /tmp directory)
unfortunately this prevents chezmoi to run my post install scripts./
chezmoi: fork/exec /tmp/1052260503.90-vim-setup.sh: permission denied
To reproduce
Run chezmoi apply or chezmoi update with a repository that has scripts and have /tmp mounted with noexec flag
Expected behavior
Configure an alternate location to execute the script from.
Output of
chezmoi doctor
The text was updated successfully, but these errors were encountered: