Hello and sorry for my English in advance.
I need to execute from root command like
envVariable1=15 envVariable2=25 sudo -u user1 sudo -E myCommand
but environment variables don't pass to myCommand. This may look illogical, but it's necessary to run command from root and with sudo cause it will be used in scripts. How can I work around the problem?