Bug 916158 - fail2ban-client fails when run using sudo
Summary: fail2ban-client fails when run using sudo
Keywords:
Status: CLOSED DUPLICATE of bug 892365
Alias: None
Product: Fedora
Classification: Fedora
Component: fail2ban
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Axel Thimm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-27 12:39 UTC by Jan Včelák
Modified: 2013-03-16 14:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-16 14:56:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Včelák 2013-02-27 12:39:39 UTC
Description of problem:

fail2ban-client cannot be run via sudo without specifing the full path to the script.


Version-Release number of selected component (if applicable):
fail2ban-0.8.8-2.fc18.noarch

How reproducible:
always


Steps to Reproduce:
1. sudo fail2ban-client
2.
3.
  
Actual results:

$ sudo fail2ban-client 
Traceback (most recent call last):
  File "/bin/fail2ban-client", line 35, in <module>
    from common.version import version
ImportError: No module named common.version

Expected results:

fail2ban-client won't crash and will start.


Additional info:

Works fine when full path is specified:

$ sudo /usr/bin/fail2ban-client
Usage: /usr/bin/fail2ban-client [OPTIONS] <COMMAND>
...

Comment 1 Orion Poplawski 2013-03-16 14:56:37 UTC

*** This bug has been marked as a duplicate of bug 892365 ***


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