The Wayback Machine - https://web.archive.org/web/20200929202943/https://github.com/netdata/netdata/issues/5128
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

Correct home directory for netdata set in /etc/passwd? #5128

Open
andyforceno opened this issue Jan 7, 2019 · 2 comments
Open

Correct home directory for netdata set in /etc/passwd? #5128

andyforceno opened this issue Jan 7, 2019 · 2 comments

Comments

@andyforceno
Copy link

@andyforceno andyforceno commented Jan 7, 2019

When I run the tiger security tool, it reports the following:
--WARN-- [pass016w] User netdata has / as home directory

Sure enough, the user netdata has / set as the home dir in /etc/passwd.

What is the correct home dir for the netdata user as specified in /etc/passwd? Is it /usr/sbin/ where netdata appears to be executed from, or /etc/netdata? The former seems correct, but I thought I'd check.

I'm currently running Netdata v1.12.0-rc2-14-ge51b735

@andyforceno andyforceno changed the title Home directory for netdata set in /etc/passwd Correct home directory for netdata set in /etc/passwd Jan 7, 2019
@andyforceno andyforceno changed the title Correct home directory for netdata set in /etc/passwd Correct home directory for netdata set in /etc/passwd? Jan 7, 2019
@paulfantom
Copy link
Contributor

@paulfantom paulfantom commented Jan 7, 2019

I wonder if we should set it to /var/lib/netdata or /var/cache/netdata as those are the only directories where netdata should have write access.

@Ferroin
Copy link
Member

@Ferroin Ferroin commented Jan 7, 2019

I'd say /var/lib/netdata probably makes the most sense here. /var/cache is almost never used for home directories because applications are supposed to be able to work correctly even if /var/cache gets nuked.

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.