Bug 21394 - user avahi has invalid home directory after Mageia distribution upgrade
Summary: user avahi has invalid home directory after Mageia distribution upgrade
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Shlomi Fish
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-29 00:54 CEST by François Andriot
Modified: 2020-08-05 14:39 CEST (History)
2 users (show)

See Also:
Source RPM: avahi-0.6.32-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description François Andriot 2017-07-29 00:54:21 CEST
Description of problem:
I have installed Mageia 1 long ago, then done all distribution upgrades on running system using the 'urpmi' method.
I've noticed that my 'avahi' user account still has home directory set to '/var/avahi' instead of '/var/run/avahi-daemon'.
This was supposed to be fixed by mga#10004 , but not for me.

Version-Release number of selected component (if applicable):
avahi-0.6.32-1.mga6.src.rpm

How reproducible:
On running Mageia 6, manually set home directory to '/var/avahi' for user 'avahi'.
Then, reinstall avahi package.
Notice the following error message from 'usermod' command, preventing   the home directory update.
usermod: user avahi is currently used by process 1221

Steps to Reproduce:
1. vi /etc/passwd
2. Change home directory to '/var/avahi' for user 'avahi'
3. urpmi --replacepkgs avahi


Proposed solution: update the %preinstall section of 'avahi' package so that:
1. stop the 'avahi-daemon' service prior to run 'usermod'
2. if usermod fails, fallback to 'sed' the passwd file directly
Comment 1 Marja Van Waes 2017-07-29 22:19:24 CEST
Assigning to the registered maintainer.

CC: (none) => marja11
Assignee: bugsquad => shlomif

Comment 2 Aurelien Oudelet 2020-08-05 14:39:26 CEST
This message is a reminder that Mageia 6 is end of life.

Mageia stopped maintaining and issuing updates for Mageia 6. At that time this bug will be closed as OLD (EOL).

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version prior to Mageia 6's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that we cannot 
be able to fix it before Mageia 6 was end of life.
If you would still like to see this bug fixed and are able to reproduce it against a later version of Mageia, you are encouraged to click on "Version" and change it against that version of Mageia.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

--
Mageia Bugsquad

CC: (none) => ouaurelien
Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.