Bug 1318354 - abrt-cli list doesn't work for normal users with PrivateReports disabled
Summary: abrt-cli list doesn't work for normal users with PrivateReports disabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: abrt
Version: 6.7
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: abrt
QA Contact: Martin Kyral
URL:
Whiteboard:
Depends On:
Blocks: 1269194
TreeView+ depends on / blocked
 
Reported: 2016-03-16 15:44 UTC by Deepu K S
Modified: 2020-05-14 15:08 UTC (History)
9 users (show)

Fixed In Version: abrt-2.0.8-42.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-21 11:39:26 UTC
Target Upstream Version:


Attachments (Terms of Use)
Patch 1/1: cli: do not ask for password if PrivateReports = no (1.19 KB, patch)
2016-11-11 09:18 UTC, Matej Habrnal
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0768 0 normal SHIPPED_LIVE abrt bug fix update 2017-03-21 12:47:45 UTC

Description Deepu K S 2016-03-16 15:44:50 UTC
Description of problem:
abrt-cli list prompts for root user password even after setting PrivateReports variable to 'no' in /etc/abrt/abrt.conf

$ abrt-cli list
PrivateReports is enabled. Only "root" can see the problems detected by ABRT.
Do you wan to run abrt-cli-root? [y/N]"

With disabling PrivateReports, even root user is prompted with this message.
# abrt-cli list
PrivateReports is enabled. Only "root" can see the problems detected by ABRT.
Do you wan to run abrt-cli-root? [y/N]

Now, if I enable PrivateReports [PrivateReports = yes], normal users are prompted with this message (as expected). But if I reply with 'N', it lists out the newly created Problem Directory of that user.
===============================
$ tail -2 /etc/abrt/abrt.conf 
#
PrivateReports = yes

$ abrt-cli list
PrivateReports is enabled. Only "root" can see the problems detected by ABRT.
Do you wan to run abrt-cli-root? [y/N] N
@0
Directory:      /var/spool/abrt/ccpp-2016-03-16-19:39:05-24789
count:          1
executable:     /bin/sleep
package:        coreutils-8.4-37.el6
time:           Wed 16 Mar 2016 07:39:05 PM IST
uid:            500
Run 'abrt-cli report /var/spool/abrt/ccpp-2016-03-16-19:39:05-24789' for creating a case in Red Hat Customer Portal

The Autoreporting feature is disabled. Please consider enabling it by issuing
'abrt-auto-reporting enabled' as a user with root privileges
===============================

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 6.7
abrt-2.0.8-34.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Disable PrivateReports. Set 'PrivateReports = no' in /etc/abrt/abrt.conf
2. # service abrtd restart
3. $ abrt-cli list         // As a user,

Actual results:
$ abrt-cli list
PrivateReports is enabled. Only "root" can see the problems detected by ABRT.
Do you wan to run abrt-cli-root? [y/N]"

Expected results:
It should list out the user's Problem directories with prompting for root password.

Additional info:
A workaround is If replied with "N" to the question, it list's out the users's directories.

Comment 1 Deepu K S 2016-03-16 15:47:40 UTC
Correcting the Expected Results part in Description :
Expected results:
It should list out the user's Problem directories without prompting for root password, if PrivateReports is set to 'no'.

Comment 5 Matej Habrnal 2016-11-11 09:18:55 UTC
Created attachment 1219671 [details]
Patch 1/1: cli: do not ask for password if PrivateReports = no

Comment 12 errata-xmlrpc 2017-03-21 11:39:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0768.html


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