Should not create config files that belong root in the users home dir

Bug #95599 reported by fujinama
26
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Undecided
Michael Vogt

Bug Description

Binary package hint: update-manager

Start update process and it fails.

ProblemType: Crash
Architecture: i386
Date: Sat Mar 24 14:39:55 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/update-manager
InterpreterPath: /usr/bin/python2.5
Package: update-manager 1:0.59.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python2.5 /usr/bin/update-manager
ProcCwd: /home/crabs
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/update-manager']
SourcePackage: update-manager
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/UpdateManager/Core/MetaRelease.py", line 171, in download
     f=open(self.METARELEASE_FILE,"w+")
 IOError: [Errno 13] Permission denied: '/home/crabs/.update-manager/meta-release'
Uname: Linux laptop 2.6.20-12-generic #2 SMP Wed Mar 21 20:55:46 UTC 2007 i686 GNU/Linux

Revision history for this message
fujinama (rjfougnier) wrote :
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Problem: sudo conservse the home dir of the user. as a result update-manager writes the meta-release information file as root in the users home dir.

1. rm -rf .update-manager
2. sudo update-manager
3. update-manager => bang

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Fixed in my local branch. Waiting for mvo to merge and upload.

@fujinama:
Delete the corresponding file as root and all should be fine: sudo rm -rf ~/.update-manager

Cheers,

Sebastian

Changed in update-manager:
assignee: nobody → mvo
status: Unconfirmed → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

@Sebastian:
I can't reproduce the error using the three steps you describe here:
1. rm -rf .update-manager
2. sudo update-manager
3. update-manager => bang

It write the information to /var/lib/update-manager/meta-release in this case on feisty for me.

Thanks,
 Michael

Changed in update-manager:
status: Fix Committed → Needs Info
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This problem is fixed in my local tree and the fix will be part of the next upload.

Cheers,
 Michael

Changed in update-manager:
status: Needs Info → Fix Committed
Michael Vogt (mvo)
Changed in update-manager:
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.