Bug 2387561 - pre-install.d/10packagelist with etckeeper-dnf5 shows permission denied errors when dnf runs as non root
Summary: pre-install.d/10packagelist with etckeeper-dnf5 shows permission denied error...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: etckeeper
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Thomas Moschny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-11 08:59 UTC by Štefan Gurský
Modified: 2025-08-11 08:59 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Štefan Gurský 2025-08-11 08:59:26 UTC
When running dnf as non root user, the following error is displayed:

/etc/etckeeper/pre-install.d/10packagelist: line 4: /var/cache/etckeeper/packagelist.pre-install: Permission denied
/etc/etckeeper/pre-install.d/10packagelist: line 5: /var/cache/etckeeper/packagelist.fmt: Permission denied

That happens even during autocomplete, where it is especially annoying. For example trying to autocomplete `dnf info etcke` (write it into bash and then press TAB) shows the error between entered text and the completion.

I think pre-install.d/10packagelist should not be run in this case at all.


Reproducible: Always

Steps to Reproduce:
1. have etckeeper-dnf5 installed
2. as non root run `dnf info etckeeper`
3. Observe the error message is displayed before output.



Additional Information:
etckeeper-dnf5 is
Version     : 1.18.22
Release     : 3.fc42


Note You need to log in before you can comment on or make changes to this bug.