change tmp folder for sudo / root command
in .bashrc file added
export TMP=/new/tmp
export TEMP=/new/tmp
export TMPDIR=/new/tmp
Also created a symlink for /tmp to new location
apps that i am running without sudo they create temp files in the new location. However, none of sudo programs create there their temp files.
permisions 1777 root:root.
What i must do?
I have tried eg. TMP=/NEWTMP sudo app but no success.