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

[Docs] Update logging.files.permissions documentation to consider umask #20584

Closed
ycombinator opened this issue Aug 13, 2020 · 8 comments · Fixed by #28347
Closed

[Docs] Update logging.files.permissions documentation to consider umask #20584

ycombinator opened this issue Aug 13, 2020 · 8 comments · Fixed by #28347
Assignees
Labels
docs Team:Docs Label for the Observability docs team Team:Elastic-Agent Label for the Agent team

Comments

@ycombinator
Copy link
Contributor

ycombinator commented Aug 13, 2020

Based on the discussion at https://discuss.elastic.co/t/rotated-log-files-have-incorrect-permissions/244623.

After the changes done in #14119 to resolve #14005, the documentation about the logging.files.permissions setting at https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#_logging_files_permissions and the example in https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#configuration-logging could use an update.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 13, 2020
@andresrc andresrc added the Team:Services (Deprecated) Label for the former Integrations-Services team label Aug 17, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 17, 2020
@andresrc andresrc added Team:Docs Label for the Observability docs team and removed Team:Services (Deprecated) Label for the former Integrations-Services team labels Aug 24, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/obs-docs (Team:Docs)

@acrewdson
Copy link

Adding a +1 here since the missing info in the docs can lead to lots of confusion currently.

@kuisathaverat
Copy link
Contributor

kuisathaverat commented Jan 5, 2021

I hit this, for me is weird that you can set permissions on a parameter and those permissions will not be applied as configured, if I set 0664, the others have not permissions, and the group has not write permission due to the creation mask. So the last digit is ignored no matter the value, and the group will not have write permissions ever, I wonder if apply a mask make sense if you are setting explicit permissions.

@hisashinz hisashinz changed the title Update logging.files.permissions documentation to consider umask [Docs] Update logging.files.permissions documentation to consider umask Jul 13, 2021
@hisashinz
Copy link

@andresrc andresrc added the Team:Elastic-Agent Label for the Agent team label Aug 4, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@KeithGHarding
Copy link

I too have hit this problem. I am using heartbeat to monitor some websites and writing the results to a file. I have specified permissions on the output to 0604 but the "other" permissions are not being applied. I can understand the purpose of the change was that files shouldn't be created by default to grant public permissions but the way it has been implemented is that even if I specifically state that I want public permissions this cannot be achieved. Seems like madness to me. Rather than using a umask value (which prevents other access) wouldn't it be simpler to set the default to not grant other - then if we specify other permissions on a individual file they should be applied.
In the mean time I have seen this webpage (#14119) that states:
An individual Beat may choose to override this default umask via the libbeat/cmd/instance.Settings.Umask field.
I am not a unix expert - can someone explain how this is done???

@rdner rdner self-assigned this Dec 17, 2021
rdner pushed a commit that referenced this issue Dec 17, 2021
…sk (#20584) (#28347)

Changes implemented in the (#14119) made all Beats-created files and folders apply an umask of 0027 (on POSIX systems).

Co-authored-by: dplavcic <[email protected]>
mergify bot pushed a commit that referenced this issue Dec 17, 2021
…sk (#20584) (#28347)

Changes implemented in the (#14119) made all Beats-created files and folders apply an umask of 0027 (on POSIX systems).

Co-authored-by: dplavcic <[email protected]>
(cherry picked from commit ecd68db)
rdner pushed a commit that referenced this issue Dec 20, 2021
…sk (#20584) (#28347) (#29503)

Changes implemented in the (#14119) made all Beats-created files and folders apply an umask of 0027 (on POSIX systems).

Co-authored-by: dplavcic <[email protected]>
(cherry picked from commit ecd68db)

Co-authored-by: Dalibor P <[email protected]>
rdner added a commit to rdner/beats that referenced this issue Jan 14, 2022
@mandrick91
Copy link

I also have this problem, how can i fix it?
for auditbeat 7.17.1 and also with 7.17.8 on CENTOS 7

I need to set right permission for monitor log with zabbix. to know when beat stop work or sending data to Elastic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Team:Docs Label for the Observability docs team Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants