Perhaps (a) missing export command(s) in .profile?
.profile is only processed by login shells, thus the solution is to create a login shell.
In reply to Re^4: [OT] sudo does not execute .profile
by ikegami
in thread Perl sudo does not execute .profile
by rhg256
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |