Doesn't work properly with umask 027

Bug #1827759 reported by kolya
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Usecase:

* Have a non-admin user with umask 027
* That non-admin user does 'sudo apt ...' that triggers rebuild of /var/lib/command-not-found/commands.db

The result is that /var/lib/command-not-found/commands.db is no longer readable by any non-root user because user's umask gets inherited and used.

Expected: regardless of what umask non-root has command-not-found database should be readable by everybody.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: command-not-found 18.10.0~pre2
ProcVersionSignature: Ubuntu 5.0.0-13.14-generic 5.0.6
Uname: Linux 5.0.0-13-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: MATE
Date: Sun May 5 00:11:49 2019
InstallationDate: Installed on 2016-02-20 (1169 days ago)
InstallationMedia: Ubuntu-MATE 15.10 "Wily Werewolf" - Release amd64 (20151021)
PackageArchitecture: all
SourcePackage: command-not-found
UpgradeStatus: Upgraded to disco on 2019-05-02 (2 days ago)

Revision history for this message
kolya (mar-kolya) wrote :
Revision history for this message
D Ledford (dledford-work) wrote :

Thanks for posting this bug. It's occurring for me as well. I fixed it with a default POSIX ACL on the /var/lib/command-not-found directory.

Full info in this other bug: https://bugs.launchpad.net/command-not-found/+bug/1824000?comments=all

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in command-not-found (Ubuntu):
status: New → Confirmed
Revision history for this message
kolya (mar-kolya) wrote :

Thanks!

Norbert (nrbrtx)
tags: removed: disco
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.