Red Hat Bugzilla – Bug 427064
Enhance message when running rpm as non-root user
Last modified: 2013-03-13 01:42:42 EDT
Description of problem:
The message that a user gets when running rpm as non-root user can be improved
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpm -e <foo> as non-root user
You will get error: can't create transaction lock on /var/lib/rpm/__db.000
Something more nicer like "You need to be root to perform this command." which
is the output from yum.
Fixed upstream to log the reason too, so regular user would typically get:
error: can't create transaction lock on /var/lib/rpm/__db.000 (Permission denied)
Rpm doesn't require root for transaction etc locks, it just needs write
permissions to the directory so claiming root is required would be wrong.