Add sudo_user env var #615

bitprophet opened this Issue Apr 12, 2012 · 0 comments


None yet

1 participant


I.e. allow block-level or global modification of which user sudo executes as.

Right now, users who always need to run sudo as another user (e.g. to run commands "as" a user which does not have SSH login privileges, and which is not root, such as daemon user accounts) have no useful recourse.

Easiest solution is just a new env var that acts as a default if the kwarg is not given.

@dcarley dcarley referenced this issue in YellLabs/yellfabric Nov 22, 2012

Fabric >= 1.4.2 reserves env.sudo_user #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment