Why sudo doesn't keep TMPDIR in the environment when using Preserve flag or env_keep option?

Solution Verified - Updated -


  • The TMPDIR environment variable is not passed to the sudo command even though the sudoers file is configured to do so


  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In