files in sudoers.d no longer being read or honored

Bug #1829609 reported by oshunluvr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hostname (Ubuntu)
New
Undecided
Unassigned

Bug Description

Previously reported bug not ever assigned: https://bugs.launchpad.net/ubuntu/+s...e/+bug/1584549

Currently using KDEneon User Edition LTS 18.04 fully updated.

No known entry format in /etc/sudoers.d/ appear to be read by sudoers any longer. All files under /etc/sudoers.d/ are permissions 0440 and root owned. visudo -c confirms the syntax passes the checks. Prior to last month, files in suoders.d were read and worked IF you used the FQDM and not the hostname (as should be allowed thus the prior bug report). Some update must have broken the usage.

I have attempted the following formats in /etc/sudoers.d/apt;

stuart office.smith.lan = (root) NOPASSWD: /usr/bin/apt-get,/usr/bin/apt,/usr/bin/add-apt-repository,/usr/bin/apt-add-repository

stuart office = (root) NOPASSWD: /usr/bin/apt-get,/usr/bin/apt,/usr/bin/add-apt-repository,/usr/bin/apt-add-repository

stuart office.smith.lan = (root) NOPASSWD: /usr/bin/apt-get
stuart office.smith.lan = (root) NOPASSWD: /usr/bin/apt
stuart office.smith.lan = (root) NOPASSWD: /usr/bin/add-apt-repository
stuart office.smith.lan = (root) NOPASSWD: /usr/bin/apt-add-repository

stuart ALL = (root) NOPASSWD: /usr/bin/apt-get,/usr/bin/apt,/usr/bin/add-apt-repository,/usr/bin/apt-add-repository

ALL ALL= (root) NOPASSWD: /usr/bin/apt-get,/usr/bin/apt,/usr/bin/add-apt-repository,/usr/bin/apt-add-repository

The first one above worked in 16.04. Prior to that (15.04) the second one worked. I have tried all of these and none are honored.

apt-cache policy sudo
sudo:
  Installed: 1.8.21p2-3ubuntu1
  Candidate: 1.8.21p2-3ubuntu1
  Version table:
 *** 1.8.21p2-3ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

Tags: sudo sudoers
Revision history for this message
oshunluvr (stuartksmith) wrote :

This bug appears to be related to KDEneon only.

Revision history for this message
oshunluvr (stuartksmith) wrote :

This appears to be KDEneon only. Please close.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.