Error - User not updated - when trying to add a group to a user

NethServer Version: 7.9.2009
Hello Team,

I’m using active directory in Nethserver. My Nethserver is fully up to date.

I’m adding an existing group to two userid’s and I’ve received the following error message. I did the same to other users and received no error. Any advice please on what could be causing this problem?

Thank you.

Error

User not updated.

The following command has failed:
system-users/update

Unfortunately we couldn’t catch the exact error. If you want to help, please click on the button below to copy the failed command to the clipboard, paste it into the Terminal and submit command output to the developers.

echo ‘{“action”:“user-update”,“name”:“swasflux1”,“groups”:[“webtop-mail-users”,“weighstations”],“gecos”:“mary”,“expires”:“no”,“shell”:“/usr/libexec/openssh/sftp-server”}’ | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-users/update | jq

Please, post the output of the command you got.

Hello @dnutan , @support_team

Thank you for this reply! Here is the results of the command when I run it:

{
  "steps": 3,
  "pid": 29715,
  "args": "webtop-mail-users,swasflux1,prep2",
  "event": "group-modify"
}
{
  "step": 1,
  "pid": 29715,
  "action": "S40nethserver-dc-group-modify",
  "event": "group-modify",
  "state": "running"
}
{
  "progress": "0.33",
  "time": "0.453768",
  "exit": 0,
  "event": "group-modify",
  "state": "done",
  "step": 1,
  "pid": 29715,
  "action": "S40nethserver-dc-group-modify"
}
{
  "step": 2,
  "pid": 29715,
  "action": "S90nethserver-sssd-clear-cache",
  "event": "group-modify",
  "state": "running"
}
{
  "progress": "0.67",
  "time": "0.250391",
  "exit": 0,
  "event": "group-modify",
  "state": "done",
  "step": 2,
  "pid": 29715,
  "action": "S90nethserver-sssd-clear-cache"
}
{
  "step": 3,
  "pid": 29715,
  "action": "S95nethserver-ejabberd-update-group",
  "event": "group-modify",
  "state": "running"
}
{
  "progress": "1.00",
  "time": "0.048407",
  "exit": 0,
  "event": "group-modify",
  "state": "done",
  "step": 3,
  "pid": 29715,
  "action": "S95nethserver-ejabberd-update-group"
}
{
  "pid": 29715,
  "status": "success",
  "event": "group-modify"
}
{
  "steps": 3,
  "pid": 29737,
  "args": "weighstations,workstations,prep2,swasflux1",
  "event": "group-modify"
}
{
  "step": 1,
  "pid": 29737,
  "action": "S40nethserver-dc-group-modify",
  "event": "group-modify",
  "state": "running"
}
{
  "progress": "0.33",
  "time": "0.858057",
  "exit": 256,
  "event": "group-modify",
  "state": "done",
  "step": 1,
  "pid": 29737,
  "action": "S40nethserver-dc-group-modify"
}
{
  "step": 2,
  "pid": 29737,
  "action": "S90nethserver-sssd-clear-cache",
  "event": "group-modify",
  "state": "running"
}
{
  "progress": "0.67",
  "time": "0.195356",
  "exit": 0,
  "event": "group-modify",
  "state": "done",
  "step": 2,
  "pid": 29737,
  "action": "S90nethserver-sssd-clear-cache"
}
{
  "step": 3,
  "pid": 29737,
  "action": "S95nethserver-ejabberd-update-group",
  "event": "group-modify",
  "state": "running"
}
{
  "progress": "1.00",
  "time": "0.047521",
  "exit": 0,
  "event": "group-modify",
  "state": "done",
  "step": 3,
  "pid": 29737,
  "action": "S95nethserver-ejabberd-update-group"
}
{
  "pid": 29737,
  "status": "failed",
  "event": "group-modify"
}
{
  "steps": 2,
  "pid": 29763,
  "args": "swasflux1,swasflux1,/usr/libexec/openssh/sftp-server",
  "event": "user-modify"
}
{
  "step": 1,
  "pid": 29763,
  "action": "S40nethserver-dc-user-modify",
  "event": "user-modify",
  "state": "running"
}
{
  "progress": "0.50",
  "time": "0.794875",
  "exit": 0,
  "event": "user-modify",
  "state": "done",
  "step": 1,
  "pid": 29763,
  "action": "S40nethserver-dc-user-modify"
}
{
  "step": 2,
  "pid": 29763,
  "action": "S90nethserver-sssd-clear-cache",
  "event": "user-modify",
  "state": "running"
}
{
  "progress": "1.00",
  "time": "0.15107",
  "exit": 0,
  "event": "user-modify",
  "state": "done",
  "step": 2,
  "pid": 29763,
  "action": "S90nethserver-sssd-clear-cache"
}
{
  "pid": 29763,
  "status": "success",
  "event": "user-modify"
}
{
  "steps": 2,
  "pid": 29791,
  "args": "swasflux1,no",
  "event": "password-policy-update"
}
{
  "step": 1,
  "pid": 29791,
  "action": "S10nethserver-sssd-clear-cache",
  "event": "password-policy-update",
  "state": "running"
}
{
  "progress": "0.50",
  "time": "0.149734",
  "exit": 0,
  "event": "password-policy-update",
  "state": "done",
  "step": 1,
  "pid": 29791,
  "action": "S10nethserver-sssd-clear-cache"
}
{
  "step": 2,
  "pid": 29791,
  "action": "S30nethserver-dc-password-policy",
  "event": "password-policy-update",
  "state": "running"
}
{
  "progress": "1.00",
  "time": "0.293732",
  "exit": 0,
  "event": "password-policy-update",
  "state": "done",
  "step": 2,
  "pid": 29791,
  "action": "S30nethserver-dc-password-policy"
}
{
  "pid": 29791,
  "status": "success",
  "event": "password-policy-update"

Thank you.

I found my problem…seems I had a groupname and computer name set as the same which caused Nethserver to not allow me to add this group. I’ve changed the computer name and I can now successfully add it to my group.

Cheers!

1 Like