From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Mingrone Newsgroups: gmane.emacs.bugs 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 Message-ID: <86v932ce92.fsf@phe.ftfl.ca> References: <86zgsed76q.fsf@phe.ftfl.ca> <87k0jip52y.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27963"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) Cc: 50594@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 15 12:42:24 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQSMy-000730-1f for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Sep 2021 12:42:24 +0200 Original-Received: from localhost ([::1]:56148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQSMw-0005k1-UP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Sep 2021 06:42:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQSMc-0005iK-Qo for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2021 06:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQSMc-0003NZ-HW for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2021 06:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQSMc-00044F-CF for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2021 06:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Joseph Mingrone Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Sep 2021 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50594 X-GNU-PR-Package: emacs Original-Received: via spool by 50594-submit@debbugs.gnu.org id=B50594.163170250015606 (code B ref 50594); Wed, 15 Sep 2021 10:42:02 +0000 Original-Received: (at 50594) by debbugs.gnu.org; 15 Sep 2021 10:41:40 +0000 Original-Received: from localhost ([127.0.0.1]:50968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQSMG-00043e-HA for submit@debbugs.gnu.org; Wed, 15 Sep 2021 06:41:40 -0400 Original-Received: from mail-qv1-f44.google.com ([209.85.219.44]:33524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQSME-00043Q-Bk for 50594@debbugs.gnu.org; Wed, 15 Sep 2021 06:41:39 -0400 Original-Received: by mail-qv1-f44.google.com with SMTP id w8so1610410qvt.0 for <50594@debbugs.gnu.org>; Wed, 15 Sep 2021 03:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=EwGDCsG0mnSag41a8lKJrY77FRXF8W9oHgK/QQ5yMIE=; b=YKJ0aaEey1IQ++MC3azJV8Yq+Kg11h6Ckg5RJe1TBOTpQnarO+XxEbZTDRMkLdmuXt wfXn8plKOMn/sDQO7/vVADL/pZDpFkmxY+L5WneD2USIeWobeDaurbzcXFGgtXSwvkcu cqDz2lVqC2IrJpZnaKnmoy9RniPTuuM0mTcIM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=EwGDCsG0mnSag41a8lKJrY77FRXF8W9oHgK/QQ5yMIE=; b=xJX5EZzCkN/FQLBfMIMW19VfT9mOmMIYIFI7ZS9KWu9rUZOZO/ugGxRcNwByreITX9 vEpmxnz3hKurOqN4gYHSCms3c+Ispn+VwCPqEdhGULHayxv6lVNRERQMzy/zy9RwR4lr e1SdMHM0y/K+DmeUmE1nLNuRIfH9W2iyKtMENmfKe30t+scKdOaAQ5qd/W2gkCLB4+uX Pgh+JA9RqknwMx1eI4Vj3CyxmqMrZdLwgDwtW4LoxUfgsy8FV0ozK4JTIjww3Fkl3qz4 tvsIoyZfuVBlSejd8f+JebM9qt0AfDN0IXgKsyE72VcyzblsZn5tmy9+A7C6KmEveDS8 TtdQ== X-Gm-Message-State: AOAM532RGAuKXVu8dk6ZUb5zCPS6j6MNV/xrhEOkiBLp66bVNGJhu2/U rSYRHmVZE0l4LLKAvCFfPAxxToI0qZ9DIVAz/Dw= X-Google-Smtp-Source: ABdhPJxp+cBjUgrjjIwtNurAqBW3tRjYEfj+LqYkW1RMMpuFkWZgAg7AjGs3zPbl6QvstEmgHY7tbQ== X-Received: by 2002:a05:6214:2d1:: with SMTP id g17mr9847833qvu.63.1631702492263; Wed, 15 Sep 2021 03:41:32 -0700 (PDT) Original-Received: from phe.ftfl.ca.ftfl.ca (drmons0544w-156-34-187-65.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.187.65]) by smtp.gmail.com with ESMTPSA id i67sm9555790qkd.90.2021.09.15.03.41.30 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Sep 2021 03:41:31 -0700 (PDT) In-Reply-To: <87k0jip52y.fsf@gmx.de> (Michael Albinus's message of "Wed, 15 Sep 2021 11:21:09 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214383 Archived-At: On Wed, 2021-09-15 at 11:21, Michael Albinus wrote: > Joseph Mingrone 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