Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128997 - sudo does not carry env variables
Summary: sudo does not carry env variables
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-05 23:35 UTC by Taj Morton
Modified: 2006-04-06 03:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Taj Morton 2006-04-05 23:35:40 UTC
By default, sudo has the flag env_reset set. This flag makes sudo drop all variables and set only the core ones (HOME, LOGNAME, PATH, SHELL, TERM, and USER). It causes problems in a few apps that rely on variables being carried over (such as Autopackage).

Why is env_reset on by default? Could it be turned off to make programs that rely on this sudo behaviour not fail with mysterious messages?

Thanks,
Taj
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-06 03:40:10 UTC
sudo does env_reset for security reasons.

This can be disabled for people in %wheel by uncommenting the
# Defaults:%wheel   !env_reset

in /etc/sudoers.