sudoers file keeps being tracked as part of snapd

Bug #1915156 reported by Junien Fridrick
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
In Progress
High
Michael Vogt

Bug Description

Hi,

snapd package version 2.46.1+20.04 on focal creates a file named /etc/sudoers.d/99-snapd.conf
However, man sudoers says :

     For example, given:

         #includedir /etc/sudoers.d

     sudo will suspend processing of the current file and read each file
     in /etc/sudoers.d, skipping file names that end in ‘~’ or contain a
     ‘.’ character to avoid causing problems with package manager or ed‐
     itor temporary/backup files.

Since the file has a '.' in its name, it is ignored.

I haven't seen an actual problem with this, but if this file is not required then it should be removed.

Thanks !

Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

Can you double check the package version? The bug was fixed in 2.46+. It was still in 2.45.1 which got originally shipped in 20.04, but has since been replaced by newer versions of the snapd package without the sudoers drop in file.

Changed in snapd (Ubuntu):
status: New → Incomplete
Revision history for this message
Junien Fridrick (axino) wrote :

I upgraded snapd, but the file is still here :

$ dpkg -l snapd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-p>
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-==============================>
ii snapd 2.48.3+20.04 amd64 Daemon and tooling that enable>

$ sudo ls -l /etc/sudoers.d/99-snapd.conf
-r--r----- 1 root root 91 Jul 10 2020 /etc/sudoers.d/99-snapd.conf

$ dpkg -S /etc/sudoers.d/99-snapd.conf
snapd: /etc/sudoers.d/99-snapd.conf

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

Perhaps it's not removed on upgrades ?

Changed in snapd (Ubuntu):
status: Incomplete → New
Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :
Download full text (6.8 KiB)

Yes, it looks like dpkg sets up the file to be tracked as part of snapd package.

$ dpkg -l snapd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-==============-============-============================================
ii snapd 2.45.1+20.04.2 amd64 Daemon and tooling that enable snap packages
$ dpkg -L snapd |grep sudoer
/etc/sudoers.d ...

Read more...

Changed in snapd (Ubuntu):
status: New → Confirmed
summary: - sudoers file ignored
+ sudoers file keeps being tracked as part of snapd
Michael Vogt (mvo)
Changed in snapd (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → High
assignee: nobody → Michael Vogt (mvo)
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.