unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Joseph Mingrone <jrm@ftfl.ca>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 50594@debbugs.gnu.org
Subject: bug#50594: 28.0.50; tramp error after upgrading sudo to version 1.9.8: option passprompt_override does not take a value
Date: Wed, 15 Sep 2021 07:41:29 -0300	[thread overview]
Message-ID: <86v932ce92.fsf@phe.ftfl.ca> (raw)
In-Reply-To: <87k0jip52y.fsf@gmx.de> (Michael Albinus's message of "Wed, 15 Sep 2021 11:21:09 +0200")

On Wed, 2021-09-15 at 11:21, Michael Albinus <michael.albinus@gmx.de> wrote:

> Joseph Mingrone <jrm@ftfl.ca> writes:

> Hi Joseph,

>> Recipe to reproduce the problem:

>> emacs -Q and evaluate
>>       (find-file "/sudo::/some/file")

>> Tramp runs
>>       sudo -u root -s -H -p P""a""s""s""w""o""r""d"": /bin/sh -i

>> but this error is now reported after upgrading sudo to 1.9.8

>>     sudo: (null): option "passprompt_override" does not take a value
>>     sudo: error initializing audit plugin sudoers_audit.

>> I guess this is related to the 2017-07-21 entry at
>> https://www.sudo.ws/changes.html.

>> Am I missing anything?

> Don't know. The ChangeLog entry you quote is four years old, I would
> expect the change is distributed already with recent sudo packages. Do
> you know which sudo version was installed before you have upgraded?

> Does the same error also happen when you call from a shell

> # sudo -u root -s -H -p P""a""s""s""w""o""r""d"": /bin/sh -i

> What happens if you call

> # sudo -u root -s -H /bin/sh -i

> I run Fedora 34, which uses sudo-1.9.5p2-1.fc34. And the upcoming Fedora
> 35 will offer sudo-1.9.7p2-2.fc35, so I have no chance to test with sudo
> 1.9.8 next time.

> Does it help to call

> # env SUDO_PROMPT=P""a""s""s""w""o""r""d"": sudo -u root -s -H /bin/sh -i

> Best regards, Michael.

Hi Michael,

Oops.  I misread the date of the ChangeLog entry and thought it was from
this year.  There are two mentions of password and prompt in the changes
between the last version that was in the FreeBSD ports tree, 1.9.7p2,
and version 1.9.8.

https://cgit.freebsd.org/ports/commit/security/sudo/Makefile?id=c403b7871cf09f123de4151bb77e8438f342075ep


sudo 1.9.7p2:

jrm@phe ~ % sudo -u root -s -H -p P""a""s""s""w""o""r""d"": /bin/sh -i
Password:
# whoami
root

sudo 1.9.8:

jrm@phe ~ % sudo -u root -s -H -p P""a""s""s""w""o""r""d"": /bin/sh -i
sudo: (null): option "passprompt_override" does not take a value
sudo: error initializing audit plugin sudoers_audit

jrm@phe ~ % sudo -u root -s -H /bin/sh -i
Password:
# whoami
root
#

jrm@phe ~ % env SUDO_PROMPT=P""a""s""s""w""o""r""d"": sudo -u root -s -H /bin/sh -i
Password:
# whoami
root

Joseph





  reply	other threads:[~2021-09-15 10:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-15  0:16 bug#50594: 28.0.50; tramp error after upgrading sudo to version 1.9.8: option passprompt_override does not take a value Joseph Mingrone
2021-09-15  9:21 ` Michael Albinus
2021-09-15 10:41   ` Joseph Mingrone [this message]
2021-09-15 13:19     ` Michael Albinus
2021-09-15 18:25       ` Joseph Mingrone
2021-09-15 18:30         ` Michael Albinus

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86v932ce92.fsf@phe.ftfl.ca \
    --to=jrm@ftfl.ca \
    --cc=50594@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).