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

Bug #498545 reported by Kim Alvefur
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)
Confirmed
Undecided
Unassigned

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

Revision history for this message
Kim Alvefur (zash) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in aptitude (Ubuntu):
status: New → Confirmed
Axel Beckert (xtaran)
summary: - Overwrites ~/.aptitude/config
+ Overwrites ~/.aptitude/config with root permissions if run under sudo
Revision history for this message
Rolf Leggewie (r0lf) wrote :

This is basically a side-effect of bug 1556302

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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