public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] sudo-1.7.4_p3-r1
@ 2010-09-07 19:48 Mick
  2010-09-08 18:08 ` pk
  0 siblings, 1 reply; 2+ messages in thread
From: Mick @ 2010-09-07 19:48 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 278 bytes --]

Just updated and noticed that the edict:

#Reset environment by default
Defaults	env_reset

is no longer in /etc/sudoers.

A load of other (commented out) environment incantations were added.  What is 
the importance of this?  Do I need env_reset?
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] sudo-1.7.4_p3-r1
  2010-09-07 19:48 [gentoo-user] sudo-1.7.4_p3-r1 Mick
@ 2010-09-08 18:08 ` pk
  0 siblings, 0 replies; 2+ messages in thread
From: pk @ 2010-09-08 18:08 UTC (permalink / raw
  To: gentoo-user

On 2010-09-07 21:48, Mick wrote:
> Just updated and noticed that the edict:
> 
> #Reset environment by default
> Defaults	env_reset
> 
> is no longer in /etc/sudoers.
> 
> A load of other (commented out) environment incantations were added.  What is 
> the importance of this?  Do I need env_reset?

From man sudoers:
env_reset

If set, sudo will reset the environment to only contain the
LOGNAME, MAIL, SHELL, USER, USERNAME and the SUDO_* variables.  Any
variables in the caller's environment that match the env_keep and
env_check lists are then added.  The default contents of the
env_keep and env_check lists are displayed when sudo is run by root
with the -V option.  If the secure_path option is set, its value
will be used for the PATH environment variable.  This flag is on by
default

HTH

Best regards

Peter K



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-08 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-07 19:48 [gentoo-user] sudo-1.7.4_p3-r1 Mick
2010-09-08 18:08 ` pk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox