I have an environment variable whose value didn't match the one set by /etc/environment, even after reboot. I eventually found the auto-executed .sh script changing it, but that incident got me interested.
Is there a way to monitor (or log, or whatever available) all changes made to environment ?
Preferably with timestamp, variable accessed, value set, user responsible, and path to bash script used when available. Not all of them mandatory, but the more the better.
On a side note I'm currently using Ubuntu14.04, but answers concerning different OS's are very welcome.
Cheers