Package: denyhosts Version: 2.6-8.1 Severity: minor Tags: patch Hi!
Running /usr/share/denyhosts/DenyHosts/dh_reenable as a normal user: Traceback (most recent call last): File "/usr/share/denyhosts/DenyHosts/dh_reenable", line 38, in <module> with open(CONFIGFILE) as file: IOError: [Errno 13] Permission denied: '/etc/denyhosts.conf' The attached patch gives the user a better message. Best regards, Nelson -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (100, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-1-amd64 (SMP w/2 CPU cores) Locale: LANG=pt_BR.utf8, LC_CTYPE=pt_BR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages denyhosts depends on: ii lsb-base 3.2-27 Linux Standard Base 3.2 init scrip ii python 2.6.6-3+squeeze6 interactive high-level object-orie ii python-central 0.6.16+nmu1 register and build utility for Pyt denyhosts recommends no packages. denyhosts suggests no packages. -- Configuration Files: /etc/denyhosts.conf [Errno 13] Permissão negada: u'/etc/denyhosts.conf' -- debconf-show failed
--- /usr/share/denyhosts/DenyHosts/dh_reenable 2010-12-24 00:15:13.000000000 -0200 +++ dh_reenable 2011-03-23 11:11:18.193436822 -0300 @@ -21,6 +21,10 @@ import fileinput import re +if os.getuid(): + print "You need to be root to run %s" % sys.argv[0] + sys.exit(1) + # file definition: HOSTSFILE='/var/lib/denyhosts/hosts'