[Bug 503171] Re: User's umask is applied to newly added repo lists

Launchpad Bug Tracker 503171 at bugs.launchpad.net
Sun Apr 15 04:18:35 UTC 2012


[Expired for software-properties (Ubuntu) because there has been no
activity for 60 days.]

** Changed in: software-properties (Ubuntu)
       Status: Incomplete => Expired

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

Title:
  User's umask is applied to newly added repo lists

Status in “software-properties” package in Ubuntu:
  Expired

Bug description:
  Binary package hint: synaptic

  When adding a new repository from Synaptic in the following fashion...
      1. Open menu item "Settings > Repositories".
      2. Open tab "Other Software".
      3. Click the "Add" button, enter an APT line, then click button "Add Source".
  ...the user's umask is applied to the resultant sources.list file in /etc/apt/sources.list.d, when the permission of a sources.list file should be world-readable regardless of the user's umask.

  If the user's umask is 077, then the resultant sources list is
  readable only by root. This in turn causes UpdateManager to place an
  error icon in gnome-panel's notification area. The error icon gives
  this message:

  <quote>
  Could not initialize the package information
  An unresolvable problem occurred while initializing the package information.
  Please report this bug against the 'update-manager' package and include the following error message:

  'E:Opening /etc/apt/sources.list.d/mercurial-ppa-stable-snapshots-karmic.list - ifstream::ifstream (13: Permission denied), E:The list of sources could not be read.'
  </quote>

  Also, I believe this a copy of Bug #426191 and Bug #426192. I'm not
  certain, though, because those bug reports are in German.

  Steps to reproduce:
  1. Place the following line in ~/.profile: umask 077
  2. Log out, then log in again.
  3. Follow the above steps to add a new repository (for example, ppa:mercurial-ppa/stable-snapshots).
  4. Click the Reload button, as prompted by Synaptic.
  5. Observe the error message produced by UpdateManager in the notification area.
  6. Execute `ls -l /etc/apt/sources.list.d`, and observe that the offending *.list file has ownership/permissions:
      -rw------- root root

  Thank you for your time!

  ProblemType: Bug
  Architecture: amd64
  Date: Mon Jan  4 16:22:24 2010
  DistroRelease: Ubuntu 9.10
  ExecutablePath: /usr/sbin/synaptic
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
  Package: synaptic 0.62.7ubuntu6
  ProcEnviron:
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
  SourcePackage: synaptic
  Uname: Linux 2.6.31-16-generic x86_64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/503171/+subscriptions




More information about the foundations-bugs mailing list