Keep Environmental Variables for Switch to Root After ‘Su’

Modifying the ~/.bashrc is necessary. the modification include the variables changes like the followings.

  • source
  • export PATH=:$PATH

Instead of the above method, there is another suggestion which make changes in /etc/environment.

I haven’t tested yet. But It seems to work.

Leave a Reply

Your email address will not be published. Required fields are marked *