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

Bug #498545 reported by Kim Alvefur on 2009-12-19
This bug affects 2 people
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)

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
 PATH=(custom, user)
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: aptitude
Uname: Linux 2.6.31-16-generic i686

Kim Alvefur (zash) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in aptitude (Ubuntu):
status: New → Confirmed
Axel Beckert (xtaran) on 2016-08-18
summary: - Overwrites ~/.aptitude/config
+ Overwrites ~/.aptitude/config with root permissions if run under sudo
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers