sudo problems. anyone feeling up to it?
Coleman Kane
cokane at cokane.org
Mon Jul 21 14:28:05 EDT 2008
On Mon, 2008-07-21 at 14:25 -0400, Shawn O'Shea wrote:
>
>
>
> The problem is that under the FF release, sudo is acting
> broken, i.e., not
> like the man page sez it's supposed to. Under FF, I lose my
> HOME envvar.
> I'm not supposed to lose it.
>
> 503 > sudo python
> Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on
> linux2
> Type "help", "copyright", "credits" or "license" for more
> information.
> >>> import os
> >>> os.system('bash')
> root at vma-sorr:/home/sorr# echo $HOME
>
>
> We starting "losing" some environment variables when we upgraded Macs
> from OS X 10.4 to 10.5. 10.5 includes a new sudo that wipes the
> environment other than specific variables it says to keep. We needed
> to add lines to sudoers to keep our proxy server environment
> variables. Maybe adding something like this would fix HOME?
>
> Defaults env_keep += "HOME"
>
> -Shawn
Yeah this is the trick I've used to handle this case, as well as other
variables I'd like to pass (such as SSH_ORIGINAL_CMD).
>
--
Coleman Kane
More information about the gnhlug-discuss
mailing list