[Bug 498545] Re: Overwrites ~/.aptitude/config with root permissions if run under sudo

Rolf Leggewie 498545 at bugs.launchpad.net
Sat Jan 29 15:04:30 UTC 2022


*** This bug is a duplicate of bug 1556302 ***
    https://bugs.launchpad.net/bugs/1556302

This is basically a side-effect of bug 1556302

** This bug has been marked a duplicate of bug 1556302
   Ubuntu patch to add HOME to env_keep makes custom commands vulnerable by default

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

Title:
  Overwrites ~/.aptitude/config with root permissions if run under sudo

Status in aptitude package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: aptitude

  Bug 10537 seems to be back.

  When I run `sudo aptitude something`, it unlinks and overwrites my
  ~/.aptitude/config and since it's running as root, it get's owned by
  root:root, and chmod 640. If then run as me, it can't read the file
  and uses default settings, and then replaces the config with a empty
  file.

  ProblemType: Bug
  Architecture: i386
  Date: Sat Dec 19 17:22:33 2009
  DistroRelease: Ubuntu 9.10
  NonfreeKernelModules: wl
  Package: aptitude 0.4.11.11-1ubuntu6
  ProcEnviron:
   LC_TIME=en_DK.UTF-8
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
  SourcePackage: aptitude
  Uname: Linux 2.6.31-16-generic i686

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




More information about the foundations-bugs mailing list