public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: pk <peterk2@coolmail.se>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] sudo-1.7.4_p3-r1
Date: Wed, 08 Sep 2010 20:08:49 +0200	[thread overview]
Message-ID: <4C87D131.8090408@coolmail.se> (raw)
In-Reply-To: <201009072049.11057.michaelkintzios@gmail.com>

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



      reply	other threads:[~2010-09-08 18:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-07 19:48 [gentoo-user] sudo-1.7.4_p3-r1 Mick
2010-09-08 18:08 ` pk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C87D131.8090408@coolmail.se \
    --to=peterk2@coolmail.se \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox