[Bug 1321299] [NEW] uid match no longer working in sudoers file on 14.04

Mark Huijgen 1321299 at bugs.launchpad.net
Tue May 20 13:59:36 UTC 2014


Public bug reported:

Ubuntu 14.04 LTS
Sudo 1.8.9p5-1ubuntu1

I'm having a problem using a numeric userid match in the sudoers file.

I have the following in my sudoers file:

User_Alias testuid = "#1000"
testuid ALL=(ALL) NOPASSWD: /usr/bin/id

However my user with uid 1000 is not allowed to run the command, its not
listed in sudo -l

I've reported this bug upstream earlier:
http://www.sudo.ws/bugs/show_bug.cgi?id=640

The commit that fixes it:
http://www.sudo.ws/repos/sudo/rev/315eff4add59

It is a regression introduced in sudo 1.8.9 and is present in Trusty and Utopic.
Users might hit this issue if they upgrade from older ubuntu releases and use numeric uid match in sudoers file.

** Affects: sudo (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/1321299

Title:
  uid match no longer working in sudoers file on 14.04

Status in “sudo” package in Ubuntu:
  New

Bug description:
  Ubuntu 14.04 LTS
  Sudo 1.8.9p5-1ubuntu1

  I'm having a problem using a numeric userid match in the sudoers file.

  I have the following in my sudoers file:

  User_Alias testuid = "#1000"
  testuid ALL=(ALL) NOPASSWD: /usr/bin/id

  However my user with uid 1000 is not allowed to run the command, its
  not listed in sudo -l

  I've reported this bug upstream earlier:
  http://www.sudo.ws/bugs/show_bug.cgi?id=640

  The commit that fixes it:
  http://www.sudo.ws/repos/sudo/rev/315eff4add59

  It is a regression introduced in sudo 1.8.9 and is present in Trusty and Utopic.
  Users might hit this issue if they upgrade from older ubuntu releases and use numeric uid match in sudoers file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1321299/+subscriptions



More information about the foundations-bugs mailing list