the I<sudoers> file. If the user is authorized by I<sudoers>
the following steps are taken:
-=over 8
+=over 4
=item 1.
password prompt and use a custom one. The following percent (`C<%>')
escapes are supported:
-=over 8
+=over 4
=item C<%H>
=item --
-The B<--> flag indicates that B<sudo> should stop processing command
+The C<--> flag indicates that B<sudo> should stop processing command
line arguments. It is most useful in conjunction with the B<-s> flag.
=back
B<sudo> utilizes the following environment variables:
- EDITOR Default editor to use in -e (sudoedit) mode if
- VISUAL is not set
+=over 16
+
+=item C<EDITOR>
+
+Default editor to use in B<-e> (sudoedit) mode if C<VISUAL> is not set
+
+=item C<HOME>
+
+In B<-s> or B<-H> mode (or if sudo was configured with the
+--enable-shell-sets-home option), set to homedir of the target user
+
+=item C<PATH>
+
+Set to a sane value if sudo was configured with the --with-secure-path option
+
+=item C<SHELL>
- HOME In -s or -H mode (or if sudo was configured with
- the --enable-shell-sets-home option), set to
- homedir of the target user
+Used to determine shell to run with C<-s> option
- PATH Set to a sane value if sudo was configured with
- the --with-secure-path option
+=item C<SUDO_PROMPT>
- SHELL Used to determine shell to run with -s option
+Used as the default password prompt
- SUDO_PROMPT Used as the default password prompt
+=item C<SUDO_COMMAND>
- SUDO_COMMAND Set to the command run by sudo
+Set to the command run by sudo
- SUDO_USER Set to the login of the user who invoked sudo
+=item C<SUDO_USER>
- SUDO_UID Set to the uid of the user who invoked sudo
+Set to the login of the user who invoked sudo
- SUDO_GID Set to the gid of the user who invoked sudo
+=item C<SUDO_UID>
- SUDO_PS1 If set, PS1 will be set to its value
+Set to the uid of the user who invoked sudo
- USER Set to the target user (root unless the -u option
- is specified)
+=item C<SUDO_GID>
- VISUAL Default editor to use in -e (sudoedit) mode
+Set to the gid of the user who invoked sudo
+
+=item C<SUDO_PS1>
+
+If set, C<PS1> will be set to its value
+
+=item C<USER>
+
+Set to the target user (root unless the B<-u> option is specified)
+
+=item C<VISUAL>
+
+Default editor to use in B<-e> (sudoedit) mode
+
+=back
=head1 FILES
=over 4
-=item F<@sysconfdir@/sudoers>C< >
-List of who can run what
+=item F<@sysconfdir@/sudoers>C< >List of who can run what
-=item F<@timedir@>C< >
-Directory containing timestamps
+=item F<@timedir@>C< >Directory containing timestamps
=back