mention /etc/environment
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 1 Jan 2008 21:52:45 +0000 (21:52 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 1 Jan 2008 21:52:45 +0000 (21:52 +0000)
sudo.pod

index bc05b5f2ecc4de39e03cdc0d96536629dc5034f8..f4284212991141dbee6700fb7a982e1722512335 100644 (file)
--- a/sudo.pod
+++ b/sudo.pod
@@ -208,8 +208,9 @@ it is passed to the shell for execution.  Otherwise, an interactive
 shell is executed.  B<sudo> attempts to change to that user's home
 directory before running the shell.  It also initializes the
 environment, leaving I<DISPLAY> and I<TERM> unchanged, setting
-I<HOME>, I<SHELL>, I<USER>, I<LOGNAME>, and I<PATH>, and unsetting
-all other environment variables.
+I<HOME>, I<SHELL>, I<USER>, I<LOGNAME>, and I<PATH>, as well as
+the contents of F</etc/environment>.  All other environment variables
+are removed.
 
 =item -K
 
@@ -500,6 +501,8 @@ Default editor to use in B<-e> (sudoedit) mode
 
 =item F<@timedir@>C<           >Directory containing timestamps
 
+=item F</etc/environment>C<    >Initial environment for B<-i> mode
+
 =back
 
 =head1 EXAMPLES