Actions
Bug #18718
openImpossible to modify user seftings when user is used by the system
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
If we modify some Settings of a user (home, shell ...) and that the user is used by the system the agent will fail the modification and result in a failling execution of the promise to set the settings
Let's say i have a user (ximou) whichi has a /home/test and i want to change it to /home/amo in technique, but the user is logged in, or the system is running a process with this user, the agent will make an error.
The output will contain the following lines
rudder info: Executing 'no timeout' ... '/usr/sbin/usermod -d /home/amo ximou' error: Finished command related to promiser '/usr/sbin/usermod' -- an error occurred, returned 8 notice: Q: "...in/usermod -d /": usermod: user ximou is currently used by process 29482 rudder info: Last 1 quoted lines were generated by promiser '/usr/sbin/usermod -d /home/amo ximou' rudder info: Completed execution of '/usr/sbin/usermod -d /home/amo ximou' E| compliant userGroupManagement Users ximou The user ximou ( ximou mou ) is already present on the system E| compliant userGroupManagement Password ximou The user ximou ( ximou mou ) password was correct E| error userGroupManagement Home directory ximou The user ximou home directory could not be changed
Actions