ansible-datadog icon indicating copy to clipboard operation
ansible-datadog copied to clipboard

A shell and a home folder

Open mliljedahl opened this issue 1 year ago • 1 comments

Guess this is not an issue with the actual ansible role (but it could be changed byt the role). Is there any reason for creating the datadog agent user with a shell and a home folder? This is at least the fact in Redhat. I see no reason for the user to have this and have updated the user in our setup to exclude shell and home folder, but I might be missing something? If wanted I can provide a PR for the change.

mliljedahl avatar Feb 02 '24 10:02 mliljedahl

Hi :wave: do you have a case where the dd-agent user has a home folder and shell?

This role doesn't touch any of that whatsoever. The user is created as part of the preinst RPM script (talking about RPMs specifically, but it's basically the same for DEBs) which you can see here. As you can see for yourself, it's created as a system account, so should have no home folder, and it uses /sbin/nologin as shell.

If you have the dd-agent user created with a home folder and shell, can you share more details about how you first installed the Agent? That might give us a clue as to what went wrong.

bkabrda avatar Feb 20 '24 12:02 bkabrda

Closing it for inactivity, more so given that the issue doesn't seem to be the Ansible role.

alopezz avatar Jul 19 '24 13:07 alopezz