sudo problems. anyone feeling up to it?
Shawn O'Shea
shawn at eth0.net
Mon Jul 21 14:25:13 EDT 2008
>
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20080721/938f40ba/attachment.html
More information about the gnhlug-discuss
mailing list