Bug 61754

Summary: up2date-2.7.60-7.x.2 tracebacks with permission denied
Product: [Retired] Red Hat Linux Reporter: James Manning <jmm>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED CURRENTRELEASE QA Contact: Jay Turner <jturner>
Severity: low Docs Contact:
Priority: low    
Version: 7.2CC: gafton, mihai.ibanescu, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-03-25 21:33:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Manning 2002-03-24 07:46:44 UTC
ok, i *think* the feedback was that the up2date client should never spit out a 
traceback (certainly doesn't matter to me, just my recollection)

running up2date as a normal user without permission on relevant files

jmm@bp6:/home/jmm> up2date
warning: can't access /etc/sysconfig/rhn/up2date
warning: can't access /etc/sysconfig/rhn/up2date
Traceback (innermost last):
  File "/usr/sbin/up2date", line 15, in ?
    from up2date_client import up2date
  File "/usr/share/rhn/up2date_client/up2date.py", line 714, in ?
    rpm_version = getRpmVersion()
  File "/usr/share/rhn/up2date_client/up2date.py", line 705, in getRpmVersion
    db = openrpmdb()
  File "/usr/share/rhn/up2date_client/up2date.py", line 696, in openrpmdb
    log.log_me("Opening rpmdb in %s with option %s" % (dbpath,option))
  File "/usr/share/rhn/up2date_client/up2date.py", line 107, in log_me
    self.write_log(s)
  File "/usr/share/rhn/up2date_client/up2date.py", line 116, in write_log
    self.log_file = open(self.log_file_name, 'a')
IOError: [Errno 13] Permission denied: '/var/log/up2date'

Comment 1 Adrian Likins 2002-03-25 21:33:33 UTC
fixed in cvs, should be there in a future version of some sort.