[patch] Existing user "maas" is used/removed when installing/removing maas-common

Bug #1558000 reported by Thomas Reusch on 2016-03-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

When the user "maas" exists as non-system user, it is used as the user for the MAAS software.

Expected behaviour when installing MAAS:
- At least a warning is shown, when user "maas" exists and is not a system user.
- Installation may break at this point, because this specific user would have too much rights in the MAAS software or the software could have too much rights when the user has extended rights.

Expected behaviour when removing MAAS:
- User may not be removed when not a system user to not break something. Warning should be shown.

Steps to reproduce:
# adduser maas # -> add non-system user "maas" with UID > 1000 on standard system
# apt-get install maas #-> warning: "adduser: The user `maas' already exists. Exiting."
# apt-get purge maas.* # -> message: "Removing user `maas' ..."
# id maas # -> id: maas: no such user

Tested with package versions (maas-common):
- 1.9.1+bzr4543-0ubuntu1~trusty1 (from ppa:maas/stable)
- 1.7.6+bzr3376-0ubuntu2~14.04.1 (from standard ubuntu repo)

Ubuntu Version: Ubuntu 14.04.4 LTS

Many thanks,


Michael Vogt (mvo) wrote :
summary: - Existing user "maas" is used/removed when installing/removing maas-
- common
+ [patch] Existing user "maas" is used/removed when installing/removing
+ maas-common
description: updated
Changed in maas:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.1.0
Changed in maas:
milestone: 2.1.0 → 2.1.1
Changed in maas:
milestone: 2.1.1 → 2.1.2
Changed in maas:
milestone: 2.1.2 → 2.1.3
Changed in maas:
milestone: 2.1.3 → 2.3.x
Changed in maas:
milestone: 2.3.x → none
milestone: none → 2.3.x
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers