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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to