]> granicus.if.org Git - sudo/log
sudo
7 years agoregen
Todd C. Miller [Tue, 12 Dec 2017 21:19:13 +0000 (14:19 -0700)]
regen

7 years agoAdd authfail_message sudoers option to allow the user to override
Todd C. Miller [Mon, 11 Dec 2017 19:43:58 +0000 (12:43 -0700)]
Add authfail_message sudoers option to allow the user to override
the default message of %d incorrect password attempt(s).

7 years agoAllow the plugin to determine whether or not an empty timeout is
Todd C. Miller [Mon, 11 Dec 2017 16:20:41 +0000 (09:20 -0700)]
Allow the plugin to determine whether or not an empty timeout is
allowed.  For sudoers, an error will be returned for an empty timeout.

7 years agoReturn an error for an empty timeout string. Just use strtol() for
Todd C. Miller [Mon, 11 Dec 2017 16:19:42 +0000 (09:19 -0700)]
Return an error for an empty timeout string.  Just use strtol() for
syntax checking instead of scanning with strspn().

7 years agoChange some _() into U_() since they are used for warn/fatal.
Todd C. Miller [Mon, 11 Dec 2017 15:07:01 +0000 (08:07 -0700)]
Change some _() into U_() since they are used for warn/fatal.
We always want to issue warnings in the user's locale.

7 years agoupdate my email address
Todd C. Miller [Mon, 11 Dec 2017 13:02:52 +0000 (06:02 -0700)]
update my email address

7 years agoDon't print mercurial branch info for merges.
Todd C. Miller [Mon, 11 Dec 2017 02:45:52 +0000 (19:45 -0700)]
Don't print mercurial branch info for merges.

7 years agoUse log size instead of using a separator between the log entry and
Todd C. Miller [Sun, 10 Dec 2017 20:39:41 +0000 (13:39 -0700)]
Use log size instead of using a separator between the log entry and
the file names.

7 years agoPrint usage and return an error when an empty argument is given for
Todd C. Miller [Sun, 10 Dec 2017 14:53:09 +0000 (07:53 -0700)]
Print usage and return an error when an empty argument is given for
all command line arguments other than -p and -E.  Bug #817

7 years agoBetter input validation of settings passed by the sudo front-end.
Todd C. Miller [Sun, 10 Dec 2017 14:45:49 +0000 (07:45 -0700)]
Better input validation of settings passed by the sudo front-end.
Instead of ignoring an empty setting, throw an error.

7 years agoTreat a blank line in a commit message as a line break. There
Todd C. Miller [Sun, 10 Dec 2017 12:56:22 +0000 (05:56 -0700)]
Treat a blank line in a commit message as a line break.  There
doesn't appear to be a way to make perl's format use a blank field
but at least the line break happens now.

7 years agoAdd script to generate ChangeLog from git log output.
Todd C. Miller [Sun, 10 Dec 2017 03:40:28 +0000 (20:40 -0700)]
Add script to generate ChangeLog from git log output.

7 years agoDon't include syslog.h from logging.h, just include it in the two
Todd C. Miller [Fri, 8 Dec 2017 22:00:41 +0000 (15:00 -0700)]
Don't include syslog.h from logging.h, just include it in the two
.c files it is actually needed.

7 years agoDocument that in check mode, visudo does not check the owner/mode
Todd C. Miller [Wed, 6 Dec 2017 17:17:33 +0000 (10:17 -0700)]
Document that in check mode, visudo does not check the owner/mode
on files specified with the -f flag.

7 years agoupdate my email to Todd.Miller@sudo.ws
Todd C. Miller [Mon, 4 Dec 2017 00:53:40 +0000 (17:53 -0700)]
update my email to Todd.Miller@sudo.ws

7 years agoAdd missing carriage return before prompt when replay is done.
Todd C. Miller [Sun, 3 Dec 2017 04:32:24 +0000 (21:32 -0700)]
Add missing carriage return before prompt when replay is done.

7 years agoTrack window size changes that happen while sudo is suspended
Todd C. Miller [Sun, 3 Dec 2017 04:30:11 +0000 (21:30 -0700)]
Track window size changes that happen while sudo is suspended

7 years agoregen
Todd C. Miller [Fri, 1 Dec 2017 22:43:04 +0000 (15:43 -0700)]
regen

7 years agoregen for sudo 1.8.22
Todd C. Miller [Fri, 1 Dec 2017 21:37:16 +0000 (14:37 -0700)]
regen for sudo 1.8.22

7 years agoSudo 1.8.22
Todd C. Miller [Fri, 1 Dec 2017 21:35:34 +0000 (14:35 -0700)]
Sudo 1.8.22

7 years agoBackground processes started by the command will no longer receive
Todd C. Miller [Fri, 1 Dec 2017 20:53:09 +0000 (13:53 -0700)]
Background processes started by the command will no longer receive
SIGHUP.

7 years agoWhen the command completes, make the monitor the foreground process
Todd C. Miller [Fri, 1 Dec 2017 20:43:06 +0000 (13:43 -0700)]
When the command completes, make the monitor the foreground process
group before informing the main sudo process of the command's exit
status.  This will prevent processes started by the command (which
runs in a different process group) from receiving SIGHUP since the
kernel sends SIGHUP to the foreground process group associated with
the terminal session.  The monitor has a SIGHUP handler installed
so the signal is effectively ignored.

7 years agoAdd debug printfs around group list retrieval.
Todd C. Miller [Fri, 1 Dec 2017 19:58:37 +0000 (12:58 -0700)]
Add debug printfs around group list retrieval.

7 years agoMove call to sudo_ev_loopcontinue() into schedule_signal() itself.
Todd C. Miller [Thu, 30 Nov 2017 17:02:15 +0000 (10:02 -0700)]
Move call to sudo_ev_loopcontinue() into schedule_signal() itself.
We always want to prioritize signal forwarding.

7 years agoDon't loop over read/write, recv/send or tcgetpgrp/tcsetpgrp trying
Todd C. Miller [Thu, 30 Nov 2017 16:53:21 +0000 (09:53 -0700)]
Don't loop over read/write, recv/send or tcgetpgrp/tcsetpgrp trying
to handle EINTR.  We now use SA_RESTART with signals so this is not
needed and is potentially dangerous if it is possible to receive
SIGTTIN or SIGTTOU (which it currently is not).

7 years agoBetter describe things when a command is run in a pty.
Todd C. Miller [Tue, 21 Nov 2017 23:59:54 +0000 (16:59 -0700)]
Better describe things when a command is run in a pty.

7 years agoSprinkle some extra debugging printfs
Todd C. Miller [Wed, 29 Nov 2017 20:13:33 +0000 (13:13 -0700)]
Sprinkle some extra debugging printfs

7 years agoHandle receipt of SIGTTIN/SIGTTOU when reading/writing from/to the tty.
Todd C. Miller [Wed, 29 Nov 2017 19:06:12 +0000 (12:06 -0700)]
Handle receipt of SIGTTIN/SIGTTOU when reading/writing from/to the tty.
We can't use a signal event for these since that would restart the
system call after the signal was handled and the callback would not
get a chance to run.  Fixes running a command in the background that
write to the tty when the TOSTOP terminal flag is set.

7 years agoWe don't need to be the foreground process to be able to write to
Todd C. Miller [Wed, 29 Nov 2017 19:06:12 +0000 (12:06 -0700)]
We don't need to be the foreground process to be able to write to
the terminal in most cases.  If the background process tries to
modify the terminal flags it will receive SIGTTOU which is relayed
to the sudo front-end.  This currently mishandles terminals with
the TOSTOP local flag set.

7 years agoAvoid a double free when ipa_hostname is set in sssd.conf and it
Todd C. Miller [Tue, 28 Nov 2017 18:28:44 +0000 (11:28 -0700)]
Avoid a double free when ipa_hostname is set in sssd.conf and it
is an unqualified host name.  From Daniel Kopecek.

Also move the "unable to allocate memory" warning into get_ipa_hostname()
itself to make it easier to see where the allocation failed in the
debug log.

7 years agoWhen running a command as the invoking user we cannot use the gid
Todd C. Miller [Tue, 28 Nov 2017 16:48:43 +0000 (09:48 -0700)]
When running a command as the invoking user we cannot use the gid
list from the front-end since it may not correspond to the user's
aux group vector as defined by the group database.

7 years agoAdd missing initprogname() calls.
Todd C. Miller [Tue, 28 Nov 2017 16:06:44 +0000 (09:06 -0700)]
Add missing initprogname() calls.

7 years agoPlug some memory leaks on error, some found by the clang static analyzer.
Todd C. Miller [Thu, 16 Nov 2017 16:43:24 +0000 (09:43 -0700)]
Plug some memory leaks on error, some found by the clang static analyzer.

7 years agoAvoid calling cmnd_matches() in list/verify mode if we already have
Todd C. Miller [Wed, 15 Nov 2017 22:09:25 +0000 (15:09 -0700)]
Avoid calling cmnd_matches() in list/verify mode if we already have
a match.

7 years agoIn list (-l) or verify (-v) mode, if we have a match but authentication
Todd C. Miller [Wed, 15 Nov 2017 22:06:45 +0000 (15:06 -0700)]
In list (-l) or verify (-v) mode, if we have a match but authentication
is required, clear FLAG_NOPASSWD so that when listpw/verifypw is
set to "all" and there are multiple sudoers sources a password will
be required unless none of the entries in all sources require
authentication.  From Radovan Sroka of RedHat

7 years agoWhen checking the results for "sudo -l" and "sudo -v", keep checking
Todd C. Miller [Wed, 15 Nov 2017 19:27:39 +0000 (12:27 -0700)]
When checking the results for "sudo -l" and "sudo -v", keep checking
even after we get a match since the value of doauth may depend on
evaluating all the results.  From Radovan Sroka of RedHat.

7 years agoIf passwd_tries is less than 1, check_user() will always return
Todd C. Miller [Tue, 14 Nov 2017 20:58:35 +0000 (13:58 -0700)]
If passwd_tries is less than 1, check_user() will always return
false (since the user didn't authenticate).  The normal reason for
this is an authentication error but in this case no authentication
was tries so no warning message has been displayed to the user.  If
the user wasn't given a chance to authenticate, set inform_user to
true when calling log_denial() from sudoers_policy_main().

An alternate approach would be for check_user() to return true
in this case but seems more confusing.

7 years agoDocument bash shell alias issue with "sudo -i".
Todd C. Miller [Sun, 22 Oct 2017 12:54:41 +0000 (06:54 -0600)]
Document bash shell alias issue with "sudo -i".

7 years agoReturn an error if the sudo front end doesn't set the user name, user ID,
Todd C. Miller [Fri, 20 Oct 2017 13:55:48 +0000 (07:55 -0600)]
Return an error if the sudo front end doesn't set the user name, user ID,
group ID or host name.  Bug #807

7 years agoTreat an empty hostname as a failure and return NULL.
Todd C. Miller [Fri, 20 Oct 2017 13:37:40 +0000 (07:37 -0600)]
Treat an empty hostname as a failure and return NULL.

7 years agoAdd support for #include and #includedir from Natale Vinto.
Todd C. Miller [Tue, 17 Oct 2017 20:28:38 +0000 (14:28 -0600)]
Add support for #include and #includedir from Natale Vinto.

7 years agoMinor corrections from Tae Wong
Todd C. Miller [Sat, 14 Oct 2017 22:24:10 +0000 (16:24 -0600)]
Minor corrections from Tae Wong

7 years agoAdd a warning that for "sudo -i command" and "sudo -s command" the
Todd C. Miller [Thu, 12 Oct 2017 16:07:46 +0000 (10:07 -0600)]
Add a warning that for "sudo -i command" and "sudo -s command" the
shell is not run in interactive mode which may change its behavior.

7 years agoFix stair-stepped output when the output of a sudo command is piped
Todd C. Miller [Tue, 26 Sep 2017 20:21:11 +0000 (14:21 -0600)]
Fix stair-stepped output when the output of a sudo command is piped
to another command and use_pty is set.

7 years agoenv_keep and env_check are also taken into account with "sudo -i".
Todd C. Miller [Tue, 26 Sep 2017 19:08:57 +0000 (13:08 -0600)]
env_keep and env_check are also taken into account with "sudo -i".
Bug #806

7 years agoMake PC insults the default and add new configure option,
Todd C. Miller [Mon, 18 Sep 2017 16:45:02 +0000 (10:45 -0600)]
Make PC insults the default and add new configure option,
enable-offensive-insults, to enable the offensive insults.

7 years agoAdd missing translators from recent updates and one name change.
Todd C. Miller [Thu, 14 Sep 2017 17:05:41 +0000 (11:05 -0600)]
Add missing translators from recent updates and one name change.

7 years agosync with translationproject.org
Todd C. Miller [Thu, 7 Sep 2017 21:47:09 +0000 (15:47 -0600)]
sync with translationproject.org
* * *
sync with translationproject.org

7 years agoMore accurately describe the use_pty option now that its behavior
Todd C. Miller [Thu, 7 Sep 2017 20:59:37 +0000 (14:59 -0600)]
More accurately describe the use_pty option now that its behavior
has changed with respect to interposition with a pipe.
Also describe some caveats with log_input.

7 years agoDocument changes in use_pty behavior when no terminal is present.
Todd C. Miller [Thu, 7 Sep 2017 20:58:34 +0000 (14:58 -0600)]
Document changes in use_pty behavior when no terminal is present.

7 years agoSet ec->cmnd_pid to the correct value when receiving the command's
Todd C. Miller [Thu, 7 Sep 2017 19:22:10 +0000 (13:22 -0600)]
Set ec->cmnd_pid to the correct value when receiving the command's
process ID from the monitor.

7 years agoIf /dev/tty is not available and no I/O logging plugins are configured,
Todd C. Miller [Thu, 7 Sep 2017 17:32:30 +0000 (11:32 -0600)]
If /dev/tty is not available and no I/O logging plugins are configured,
fall back on exec_nopty() even if the policy plugin requested a pty.
We never allocate a pty when sudo is not run from a terminal anyway.

7 years agoDo not set utmp_user if we did not actually allocate a pty.
Todd C. Miller [Thu, 7 Sep 2017 17:00:19 +0000 (11:00 -0600)]
Do not set utmp_user if we did not actually allocate a pty.

7 years agosudo 1.8.21p2
Todd C. Miller [Thu, 7 Sep 2017 03:02:11 +0000 (21:02 -0600)]
sudo 1.8.21p2

7 years agosudo_terminated() should not return true when SIGCHLD is pending.
Todd C. Miller [Wed, 6 Sep 2017 22:08:23 +0000 (16:08 -0600)]
sudo_terminated() should not return true when SIGCHLD is pending.
Bug #801

7 years agoSet SIGCHLD handler to SIG_DFL before forking the askpass command
Todd C. Miller [Wed, 6 Sep 2017 21:59:37 +0000 (15:59 -0600)]
Set SIGCHLD handler to SIG_DFL before forking the askpass command
and restore after.  Otherwise, SIGCHLD will end up in the list of
pending signals and sudo_execute() will not execute the command.

7 years agoThe read and write sides of signal_pipe[] were swapped, resulting
Todd C. Miller [Wed, 6 Sep 2017 18:29:36 +0000 (12:29 -0600)]
The read and write sides of signal_pipe[] were swapped, resulting
in EBADF reading from and writing to the signal pipe on Linux and
probably others.  On systems with bidirectional pipes this was not
an issue.

7 years agoFix a logic error in 96651906de42 which prevented sudo from using
Todd C. Miller [Tue, 5 Sep 2017 15:30:19 +0000 (09:30 -0600)]
Fix a logic error in 96651906de42 which prevented sudo from using
the PAM-supplied prompt.  Bug #799

7 years agoSudo 1.8.21p1
Todd C. Miller [Fri, 1 Sep 2017 20:09:43 +0000 (14:09 -0600)]
Sudo 1.8.21p1

7 years agoThe Fedora sudo package uses /etc/ldap.conf not /etc/sudo-ldap.conf.
Todd C. Miller [Fri, 1 Sep 2017 19:59:45 +0000 (13:59 -0600)]
The Fedora sudo package uses /etc/ldap.conf not /etc/sudo-ldap.conf.

7 years agoThe fix for matching when no sudoRunAsUser is present in a sudoRole
Todd C. Miller [Fri, 1 Sep 2017 17:36:15 +0000 (11:36 -0600)]
The fix for matching when no sudoRunAsUser is present in a sudoRole
was incomplete.  If no -g option was specified on the command line
but sudoRunAsGroup is present in a sudoRole, we need to treat the
group match as failed instead of missing.

7 years agoSprinkle a few more debugging printfs.
Todd C. Miller [Fri, 1 Sep 2017 15:22:31 +0000 (09:22 -0600)]
Sprinkle a few more debugging printfs.

7 years agoFix replaying sessions that contain input logs. When the inter-record
Todd C. Miller [Fri, 1 Sep 2017 15:00:17 +0000 (09:00 -0600)]
Fix replaying sessions that contain input logs.  When the inter-record
timeout expires we need to read the next record if there is nothing
to output.

7 years agoregen
Todd C. Miller [Fri, 1 Sep 2017 12:01:08 +0000 (06:01 -0600)]
regen

7 years agoFix typo (Auguest vs. August). From David Pocock.
Todd C. Miller [Fri, 1 Sep 2017 12:00:48 +0000 (06:00 -0600)]
Fix typo (Auguest vs. August).  From David Pocock.

7 years agoGo back to returning true from display_privs() on non-error. This
Todd C. Miller [Thu, 31 Aug 2017 17:29:19 +0000 (11:29 -0600)]
Go back to returning true from display_privs() on non-error.  This
results in "sudo -U otheruser -l" exiting with a status of 0 even
when otheruser is not allowed to run commands.  This is appropriate
since the "sudo -l" command was successful.  This does not change
the exit value when otheruser runs "sudo -l" themselves, the exit
status will be 1 since that user is not allowed to run commands.
Requested by Radovan Sroka.

7 years agoFix the pass2 ldap query string when no search filter is defined.
Todd C. Miller [Thu, 31 Aug 2017 17:05:48 +0000 (11:05 -0600)]
Fix the pass2 ldap query string when no search filter is defined.
Due to the addition of "(sudoUser=*)" to the query we always need
the AND operator, even if no search filter is present.

7 years agoDon't forward SIGINFO to the child when it is send by the kernel
Todd C. Miller [Tue, 29 Aug 2017 14:58:14 +0000 (08:58 -0600)]
Don't forward SIGINFO to the child when it is send by the kernel
(not another user process).  This is consistent with the handling
of other keyboard-generated signals such as SIGINT, SIGQUIT and
SIGTSTP.  Bug #796

7 years agoFix path to LICENSE and NEWS files that get used in the installer.
Todd C. Miller [Wed, 23 Aug 2017 17:54:13 +0000 (11:54 -0600)]
Fix path to LICENSE and NEWS files that get used in the installer.
Previously, the installed versions were used instead of the ones
in the destdir.

7 years agosync with translationproject.org
Todd C. Miller [Mon, 21 Aug 2017 01:07:07 +0000 (19:07 -0600)]
sync with translationproject.org

7 years agosync with translationproject.org
Todd C. Miller [Fri, 18 Aug 2017 16:00:27 +0000 (10:00 -0600)]
sync with translationproject.org

7 years agosync with translationproject.org
Todd C. Miller [Sat, 12 Aug 2017 21:29:35 +0000 (15:29 -0600)]
sync with translationproject.org

7 years agoPreserving environment variables on the command line was bug #279
Todd C. Miller [Fri, 11 Aug 2017 15:50:07 +0000 (09:50 -0600)]
Preserving environment variables on the command line was bug #279

7 years agoAdd Friulian translation for sudo from Fabio Tomat via translationproject.org
Todd C. Miller [Thu, 10 Aug 2017 16:14:57 +0000 (10:14 -0600)]
Add Friulian translation for sudo from Fabio Tomat via translationproject.org

7 years agosync with translationproject.org
Todd C. Miller [Tue, 8 Aug 2017 12:50:24 +0000 (06:50 -0600)]
sync with translationproject.org

7 years agoIn the Runas example that uses "boulder" make it clear that "boulder"
Todd C. Miller [Fri, 4 Aug 2017 20:55:03 +0000 (14:55 -0600)]
In the Runas example that uses "boulder" make it clear that "boulder"
is a host name.

7 years agoregen
Todd C. Miller [Thu, 3 Aug 2017 16:06:16 +0000 (10:06 -0600)]
regen

7 years agoAllow the user to specify a list of environment variables to preserve.
Todd C. Miller [Thu, 3 Aug 2017 13:32:24 +0000 (07:32 -0600)]
Allow the user to specify a list of environment variables to preserve.
This adds an option paramter to the --preserve-env option, a
comma-separated list of variable names.

7 years agoReplace tty_tickets option with timestamp_type which can be
Todd C. Miller [Tue, 1 Aug 2017 22:14:54 +0000 (16:14 -0600)]
Replace tty_tickets option with timestamp_type which can be
global, ppid or tty.  Defaults to tty (no change in behavior).
Some users want the ppid behavior.

7 years agoregen
Todd C. Miller [Tue, 1 Aug 2017 21:45:20 +0000 (15:45 -0600)]
regen

7 years agoDon't send email about an unresolvable host name if fqdn is
Todd C. Miller [Tue, 1 Aug 2017 19:45:32 +0000 (13:45 -0600)]
Don't send email about an unresolvable host name if fqdn is
enabled and the user specified the run host via the -h flag.

7 years agofix playback of stdout/stderr without embedded carriage returns
Todd C. Miller [Mon, 31 Jul 2017 16:44:39 +0000 (10:44 -0600)]
fix playback of stdout/stderr without embedded carriage returns

7 years agoAvoid unused variable warning when sasl is not used.
Todd C. Miller [Fri, 28 Jul 2017 20:05:54 +0000 (14:05 -0600)]
Avoid unused variable warning when sasl is not used.

7 years agoAdd support for --enable-sasl and --disable-sasl to make it possible
Todd C. Miller [Fri, 28 Jul 2017 19:52:55 +0000 (13:52 -0600)]
Add support for --enable-sasl and --disable-sasl to make it possible
to enable/disable support for LDAP with SASL authentication.  Sudo
compiles in support for SASL authentiation by default if the
ldap_sasl_interactive_bind_s() function is detected.
Bug #788

7 years agoList the correct pattern ("*=()*") in the env_delete description.
Todd C. Miller [Fri, 28 Jul 2017 15:50:12 +0000 (09:50 -0600)]
List the correct pattern ("*=()*") in the env_delete description.
Use pseudo-tty instead of pseudo terminal for consistency.

7 years agoInclude pathnames.h for /dev/fd on FreeBSD and Mac OS X.
Todd C. Miller [Fri, 28 Jul 2017 02:51:21 +0000 (20:51 -0600)]
Include pathnames.h for /dev/fd on FreeBSD and Mac OS X.

7 years agoupdate for 1.8.21
Todd C. Miller [Thu, 27 Jul 2017 23:08:09 +0000 (17:08 -0600)]
update for 1.8.21

7 years agoNo need to call sudo_ev_del() before sudo_ev_free(); sudo_ev_free()
Todd C. Miller [Thu, 27 Jul 2017 20:12:57 +0000 (14:12 -0600)]
No need to call sudo_ev_del() before sudo_ev_free(); sudo_ev_free()
will delete the event from its base before freeing it.

7 years agoTerminate the command if an I/O log function returns 0 or -1. This
Todd C. Miller [Thu, 27 Jul 2017 20:10:44 +0000 (14:10 -0600)]
Terminate the command if an I/O log function returns 0 or -1.  This
was mistakenly removed by 25b7fd056614 in Sudo 1.8.18 with the
removal of the ignore_iolog_errors variable.

7 years agoQuiet a coverity false positive.
Todd C. Miller [Thu, 27 Jul 2017 17:36:10 +0000 (11:36 -0600)]
Quiet a coverity false positive.

7 years agoChange to a single event loop in sudoreplay and use signal events.
Todd C. Miller [Thu, 27 Jul 2017 15:45:35 +0000 (09:45 -0600)]
Change to a single event loop in sudoreplay and use signal events.

7 years agostart new sentences on a new line
Todd C. Miller [Fri, 21 Jul 2017 17:20:04 +0000 (11:20 -0600)]
start new sentences on a new line

7 years agoClarify how the variable prompt options interact with each other
Todd C. Miller [Fri, 21 Jul 2017 17:18:13 +0000 (11:18 -0600)]
Clarify how the variable prompt options interact with each other
and PAM.

7 years agoDon't set passprompt_override when SUDO_PROMPT is present.
Todd C. Miller [Fri, 21 Jul 2017 15:07:00 +0000 (09:07 -0600)]
Don't set passprompt_override when SUDO_PROMPT is present.
This effectively reverts ed77d255f383.

We treat the SUDO_PROMPT environment variable similar to passprompt
in sudoers: it will only override a PAM prompt if the PAM prompt
is either "Password:" or "username's Password:".

7 years agoAdd syslog_pid sudoers option to log sudo's process ID when logging
Todd C. Miller [Thu, 20 Jul 2017 22:33:12 +0000 (16:33 -0600)]
Add syslog_pid sudoers option to log sudo's process ID when logging
via syslog.  This is disabled by default to match historic behavior.

7 years agoWhen deciding which prompt to use (PAM's or sudo's) treat the PAM
Todd C. Miller [Thu, 20 Jul 2017 22:06:47 +0000 (16:06 -0600)]
When deciding which prompt to use (PAM's or sudo's) treat the PAM
prompt "username's Password:" as equivalent to "Password:".
Some PAM modules (on AIX at least) use this prompt.

7 years agoAdd missing argument to a few of the defaults strings in the
Todd C. Miller [Thu, 20 Jul 2017 19:58:54 +0000 (13:58 -0600)]
Add missing argument to a few of the defaults strings in the
"sudo -V" output.

7 years agoWhen examining environment variables or variables passed in from
Todd C. Miller [Thu, 20 Jul 2017 18:02:22 +0000 (12:02 -0600)]
When examining environment variables or variables passed in from
the front-end, ignore variables with no value specified.

7 years agoDocument that "-p prompt" overrides SUDO_PROMPT.
Todd C. Miller [Thu, 20 Jul 2017 17:44:50 +0000 (11:44 -0600)]
Document that "-p prompt" overrides SUDO_PROMPT.

7 years agoEnable passprompt_override by default if SUDO_PROMPT is present in
Todd C. Miller [Thu, 20 Jul 2017 17:40:49 +0000 (11:40 -0600)]
Enable passprompt_override by default if SUDO_PROMPT is present in
the environment.  This is consistent with how "sudo -p prompt" is
handled.