"Permission denied" errors for users not in adm group

Bug #444678 reported by Anand Kumria
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: apport

1)

eve[~]% lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10

2)

eve[~]% apt-cache policy apport
apport:
  Installed: 1.9.2-0ubuntu1
  Candidate: 1.9.2-0ubuntu1
  Version table:
 *** 1.9.2-0ubuntu1 0
        500 http://uk.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

3)

The bug report dialog to appear

4)

The bug report dialog appeared but before it did, this also did:

eve[~]% ubuntu-bug pulseaudio
hook /usr/share/apport/package-hooks//source_pulseaudio.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/apport/report.py", line 641, in add_hooks_info
    symb['add_info'](self)
  File "/usr/share/apport/package-hooks//source_pulseaudio.py", line 14, in add_info
    recent_syslog(re.compile(r'pulseaudio\['))
  File "/usr/lib/python2.6/dist-packages/apport/hookutils.py", line 290, in recent_syslog
    for line in open('/var/log/syslog'):
IOError: [Errno 13] Permission denied: '/var/log/syslog'

ProblemType: Bug
ApportLog: Error: [Errno 13] Permission denied: '/var/log/apport.log'
Architecture: i386
Date: Tue Oct 6 17:12:24 2009
DistroRelease: Ubuntu 9.10
Package: apport 1.9.2-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=C
 PATH=(custom, user)
 LANG=C
 SHELL=/usr/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: apport
Uname: Linux 2.6.31-11-generic i686

Revision history for this message
Anand Kumria (wildfire) wrote :
Revision history for this message
Marco Rodrigues (gothicx) wrote :

Hi! Please execute at console:

$ ls -l /var/log/syslog

And show here the output.

Revision history for this message
Anand Kumria (wildfire) wrote :

Hi,

eve[~]% ls -l /var/log/syslog
-rw-r----- 1 syslog adm 308773 Oct 6 20:18 /var/log/syslog

Since it seems to readable by the 'adm' group, I also checked to see which ones I am in. I am apparently not in that group (I upgradeded from 9.04 to the 9.10 beta a few days ago).

eve[~]% groups
anand disk dialout fax cdrom floppy tape audio dip video plugdev netdev camera scanner lpadmin powerdev fuse vboxusers sambashare admin libvirtd
eve[~]% id
uid=1000(anand) gid=1000(anand) groups=6(disk),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),29(audio),30(dip),44(video),46(plugdev),105(netdev),106(camera),107(scanner),114(lpadmin),119(powerdev),124(fuse),127(vboxusers),134(sambashare),147(admin),148(libvirtd),1000(anand)

Revision history for this message
Marco Rodrigues (gothicx) wrote :

This issue could be related to Bug 444543

Revision history for this message
Marco Rodrigues (gothicx) wrote :

Forget it.. wrong bug.

Martin Pitt (pitti)
summary: - when reporting bugs about pulseaudio, a traceback is seen
+ "Permission denied" errors for users not in adm group
Changed in apport (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Rookcifer (rookcifer) wrote :

Getting this same bug repeatedly on Lucid. Whenever apport runs, it always ends with this error:

IOError(13, 'Permission denied')

Revision history for this message
Rookcifer (rookcifer) wrote :

BTW, I just checked and I am in the "adm" group! So that's not the problem here.

Revision history for this message
Jānis Kangarooo (kangarooo) wrote :

hmm strange.. i get same but i tryd sudo ubuntu-bug -c filename and with sudo it worked.
but when i first run it with user acces it didnt asked immidiatly (witch is also strange) but later for passw. so since i later gave passw it needed to work also..

Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in trunk.

Changed in apport (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.17.2-0ubuntu1

---------------
apport (1.17.2-0ubuntu1) natty; urgency=low

  * New upstream bug fix release:
    - Be more Python 3 compatible (not fully working with Python 3 yet,
      though).
    - apt/dpkg backend: Drop support for pre-0.7.9 python-apt API.
    - Add --tag option to add extra tags to reports. (LP: #572504)
    - hookutils.py, attach_dmesg(): Do not overwrite already existing dmesg.
    - hookutils.py: Be more robust against file permission errors.
      (LP: #444678)
    - ui.py: Do not show all the options in --help when invoked as *-bug.
      (LP: #665953)
    - launchpad.py: Adapt test cases to current standard_title() behaviour.
  * debian/control: Bump python-apt dependency to >= 0.7.9 to ensure that we
    have the current API. Trunk dropped support for the old API.
  * data/general-hooks/ubuntu.py: Ignore obsolete packages when filing bugs
    against update-manager. (LP: #397519)
  * data/general-hooks/ubuntu.py: Do not file a package install failure if
    DpkgTerminalLog doesn't have any data. (LP: #695887)
  * Add debian/apport.postinst: Create /var/crash. This directory is required
    for package failures even if apport is disabled and thus the upstart job
    does not run. (LP: #683367)
 -- Martin Pitt <email address hidden> Fri, 04 Feb 2011 15:46:40 +0100

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.