cnf db mode gets reset based on root umask each apt update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
Confirmed
|
Undecided
|
Kellen Renshaw |
Bug Description
[impact]
each time 'apt update' is run, the cnf db is recreated, and it replaces the existing cnf db file. This resets its file mode based on the root umask, since root is the user that runs 'apt update'. If the root umask has the 'other' value set to 7 (e.g. umask 027), then the cnf db will not be readable by non-root users, which breaks usage of cnf.
[test case]
set root umask to (e.g.) 027 in /etc/login.defs and run 'sudo apt update', then check the mode of the cnf db (or try to use cnf as a non-root user)
[regression potential]
failure to create or update the cnf db, or problems with users using cnf
[scope]
this is needed upstream and in all releases
[other info]
https:/
tags: | added: sts |
Changed in command-not-found (Ubuntu): | |
assignee: | nobody → Kellen Renshaw (krenshaw) |
Status changed to 'Confirmed' because the bug affects multiple users.