Project

General

Profile

Actions

Bug #5212

closed

Bug #5172: ncf-api does not run as root and cannot use command to read/write promises

Bug #5194: correct permission on /var/rudder/configuration-repository so ncf-builder can write/delete techniques

The group 'rudder' can't be added on SLES or RHEL during installation of rudder-webapp

Added by Nicolas PERRON over 10 years ago. Updated about 8 years ago.

Status:
Released
Priority:
N/A
Assignee:
Jonathan CLARKE
Category:
-
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

During installation of rudder-webapp on SuSE, the postinst script will fail as the group 'rudder' can't be added. The reason is that addgroup does not exist and usermod does not have option "-a":

[...]
Installing: rudder-webapp-1398866025:2.11.0.beta3.git201407030326-1.SLES.11 [...........................................done]
Additional rpm output:
[...]
INFO: Creating group rudder.../var/tmp/rpm-tmp.17571: line 37: addgroup: command not found
 Done
INFO: Adding ncf-api-venv to the rudder group...usermod: invalid option -- 'a'
Try `usermod --help' or `usermod --usage' for more information.
 Done
chgrp: invalid group: `rudder'
[...]


Subtasks 1 (0 open1 closed)

Bug #9674: Wrong group parameter during installation of rudder-webappReleasedAlexis Mousset2016-11-14Actions
Actions #1

Updated by Nicolas PERRON over 10 years ago

"addgroup --system" equivalent is "groupadd --system" (generic)
"usermod -a -G" equivalent is "usermod -A" (specific to SuSE)

The same problem exist for "delgroup" which does not exist on SuSE.
"delgroup" equivalent is "groupdel" (generic)

Actions #2

Updated by Nicolas PERRON over 10 years ago

  • Subject changed from The group 'rudder' can't be added on SLES SP1 during installation of rudder-webapp to The group 'rudder' can't be added on SLES or RHEL during installation of rudder-webapp

The binaries don't exist on RHEL too

Actions #3

Updated by Nicolas PERRON over 10 years ago

  • Status changed from New to Pending technical review
  • Assignee set to Jonathan CLARKE
  • Priority changed from N/A to 1 (highest)
  • Target version set to 2.11.0~rc1
  • % Done changed from 0 to 100
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/434

PR URL added: https://github.com/Normation/rudder-packages/pull/434

Jon, could you review it please ?

Actions #4

Updated by Nicolas PERRON over 10 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset packages:commit:40970ddba5743d54cb8a2fa4d2888ac28d489486.

Actions #5

Updated by Nicolas PERRON over 10 years ago

Applied in changeset packages:commit:eaa8b7f839951e718b844f1ae4393c7fbe79bc18.

Actions #6

Updated by Vincent MEMBRÉ over 10 years ago

  • Parent task set to #5194
Actions #7

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.0~rc1 (announcement , changelog), which was released today.

Actions

Also available in: Atom PDF