Public bug reported:
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
** Affects: apt (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386
--
unnecessarily restrictive permissions on /var/log/apt/term.log
https://bugs.launchpad.net/bugs/404724
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs