DataDog / ansible-datadog

Ansible role for Datadog Agent
Apache License 2.0
297 stars 222 forks source link

A shell and a home folder #544

Closed mliljedahl closed 1 month ago

mliljedahl commented 6 months ago

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.

bkabrda commented 6 months ago

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.

alopezz commented 1 month ago

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