On 08/10/2018 11:06 PM, Bruce Dubbs wrote: > I think it is unnecessary. su itself does not need the environment > variable. If a user needs a specific setting, then set it in a script: > > su --command myscript I'm 50:50. The point was to pass in variables values per environment to a process inside 'su' (or 'sudo'), and one can achieve that with e.g. $ su -c 'env VAR="val" myscript' user Well, this might become slightly trickier with real shell or environment variables wrt/ correct shell quoting: $ VAR='some value' $ su -c 'env VAR="'"$VAR"'" myscript' user It might be worth adding such an example to the documentation. Have a nice day, Berny