[Bug 404724] Re: unnecessarily restrictive permissions on /var/log/apt/term.log

Michael Vogt michael.vogt at ubuntu.com
Tue Jun 28 09:12:16 UTC 2011


** Changed in: apt (Ubuntu)
       Status: Triaged => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/404724

Title:
  unnecessarily restrictive permissions on /var/log/apt/term.log

Status in “apt” package in Ubuntu:
  Fix Committed

Bug description:
  Binary package hint: apt

  While writing an Apport hook for 'upgrade-system', I needed to include
  the APT log, which I've implemented using:

  def add_info(report):
          attach_file_if_exists(report, '/var/log/apt/term.log', 'AptLog')

  However, this fails with an:

  Error: [Errno 13] permission denied: /var/log/apt/term.log

  Sure enough, permissions seem to be:

  -rw------- 1 root root 86K 2009-07-25 12:18 /var/log/apt/term.log

  Is there any rationale for not making this 644 instead?  If there is,
  how is someone supposed to implement the attachment of the log file,
  then?

  ProblemType: Bug
  Architecture: i386
  Dependencies:
   libgcc1 1:4.3.3-5ubuntu4
   gcc-4.3-base 4.3.3-5ubuntu4
   libstdc++6 4.3.3-5ubuntu4
   findutils 4.4.0-2ubuntu4
   libc6 2.9-4ubuntu6
  DistroRelease: Ubuntu 9.04
  Package: apt 0.7.20.2ubuntu6
  ProcEnviron:
   PATH=(custom, user)
   LANG=fi_FI.UTF-8
   SHELL=/bin/bash
  SourcePackage: apt
  Uname: Linux 2.6.28-13-generic i686

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/404724/+subscriptions




More information about the foundations-bugs mailing list