This is actually a follow up in another thread, but to avoid hijacking the
thread I will post it in a new thread.
it /is/ possible to let sudo change the HOME enviroment variable.
either by specifying the -H argument
or it could be set by the policy.
According to http://www.sudo.ws/sudo/man/1.8.11/sudo.conf.man.html
the policy should be in /etc/sudo.conf, but in trisquel I do not have one
there.
I tried
sudo -H env | grep HOME
HOME=/root
without the -H switch sudo doesn't change HOME
If it is true that for graphical application it is best to change the HOME
environment,
then is it not the same for for commandline applications also?
I am wondering what the pro/cons of this behaviour is.
what you think?