{"id":"become-user-for-unprivileged-ops","text":"FTL2 supports `become_user` parameter on module calls to run operations as a specific unprivileged user rather than root — e.g., `become_user=SERVICE_USER` for `uv` installs.","truth_value":"IN","source":"entries/2026/05/11/deployments-expert-service-deploy.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{"example":"# From ftl2-agentcraft/scripts/sandbox.py — install tools as agent user\nawait ftl.agent_vm.shell(\n    cmd=\"which uv || curl -LsSf https://astral.sh/uv/install.sh | sh\",\n    become_user=user,\n)\nawait ftl.agent_vm.shell(\n    cmd=\"export PATH=$HOME/.local/bin:$PATH && \"\n        \"uv tool install git+https://github.com/benthomasson/ftl-reasons\",\n    become_user=user,\n)"},"explanation":{"steps":[{"node":"become-user-for-unprivileged-ops","truth_value":"IN","reason":"premise"}]}}