On Apr 25, 2008, at 3:14 PM, William Scott wrote:
> Yes, that is a general "problem" with sudo, with the latest version
> distributed in OS X.
>
> Briefly, sudo (and I have noticed other programs, like screen) don't
> inherit the environment, so
>
> sudo ccp4i
>
> no longer works.
>
> sudo -s
>
> spawns a root shell.
>
> Then you can source the environment file, and then it will all work.
If this represents a serious problem, you can try the following (at
your own risk):
comment out this line in /etc/sudoers: Defaults env_reset
Some sort of reboot/logout might be required for it to go into effect.
Ian
|