Bug 427064 - Enhance message when running rpm as non-root user
Summary: Enhance message when running rpm as non-root user
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-30 19:55 UTC by Rahul Sundaram
Modified: 2013-03-13 05:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-04-01 10:43:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rahul Sundaram 2007-12-30 19:55:51 UTC
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):


How reproducible:


Steps to Reproduce:
1. rpm -e <foo> as non-root user

  
Actual results:

You will get error: can't create transaction lock on /var/lib/rpm/__db.000

Expected results:

Something more nicer like "You need to be root to perform this command." which
is the output from yum.

Comment 1 Panu Matilainen 2008-04-01 10:43:03 UTC
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. 


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