Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A shell and a home folder #544

Open
mliljedahl opened this issue Feb 2, 2024 · 1 comment
Open

A shell and a home folder #544

mliljedahl opened this issue Feb 2, 2024 · 1 comment

Comments

@mliljedahl
Copy link

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
Copy link
Contributor

bkabrda commented Feb 20, 2024

Hi 👋 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants