[sudo-users] SUDO on AIX not keeping env variables
Todd C. Miller
Todd.Miller at courtesan.com
Mon Jul 15 12:30:43 MDT 2013
On Mon, 15 Jul 2013 17:58:10 -0000, wagnerprata at comcast.net wrote:
> Error 6 initializing SQL*Plus
> SP2-0667: Message file sp1<lang>.msb not found
> SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
> This error is because SUDO is not keeping the environment variables from user
The environment controls affect which variables are preserved from
the invoking user's environment when setting up the environment for
the target user. In your example, the invoking user would be gc111d.
If gc111d doesn't have ORACLE_HOME set then sudo can't preserve it.
More information about the sudo-users