Your message dated Sun, 1 Aug 2021 15:13:13 +0200
with message-id <[email protected]>
and subject line Re: Bug#691913: change of sudo behavior when quoting commands
has caused the Debian Bug report #691913,
regarding change of sudo behavior when quoting commands
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
691913: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691913
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sudo
Version: 1.8.5p2-1
Severity: normal

I had a script (that used to work on some older version of sudo) doing
the equivalent of:

sudo -u ultrotter -i "echo ciao && whoami"
ciao
ultrotter

This worked eg. on Sudo version 1.7.2p1

Nowadays it does parse the command as one single command:

sudo -u ultrotter -i "echo foo && whoami"
-bash: echo foo && whoami: command not found

Of course for any normal command all works by removing the quotes, but
it seems to be that there's not anymore a way to pass && or || to an
interactive sudo command (although bash -c ... will work) because
there's no way to excape them from the shell in which sudo is executed,
but not from the shell that sudo executes.

Thanks,

Guido


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sudo depends on:
ii  libc6           2.13-35
ii  libpam-modules  1.1.3-7.1
ii  libpam0g        1.1.3-7.1
ii  libselinux1     2.1.9-5

sudo recommends no packages.

sudo suggests no packages.

-- Configuration Files:
/etc/sudoers [Errno 13] Permission denied: u'/etc/sudoers'
/etc/sudoers.d/README [Errno 13] Permission denied: u'/etc/sudoers.d/README'

-- no debconf information

--- End Message ---
--- Begin Message ---
On Wed, Feb 24, 2021 at 10:00:10PM +0100, Marc Haber wrote:
> If you have a really good reason for this change, I'd b willing to take
> your suggestion upstream. Otherwise, it would be nice to just close
> this. If there is no reply, I plan to close this bug by the end of June
> 2021.

Closing now.

Greetings
Marc

--- End Message ---

Reply via email to