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

Audit log plugin cannot be enabled when using xo-server as a non-root user #4854

Closed
emersonkfuri opened this issue Mar 6, 2020 · 4 comments · Fixed by #4897
Closed

Audit log plugin cannot be enabled when using xo-server as a non-root user #4854

emersonkfuri opened this issue Mar 6, 2020 · 4 comments · Fixed by #4897

Comments

@emersonkfuri
Copy link
Contributor

  • XO origin: the sources
  • Versions:
    • Node: nodejs-10.16.3-2.module_el8.0.0+186+542b25fc.x86_64
    • xo-web: 5.57.1
    • xo-server: 5.57.3

Expected behavior

Audit log plugin cannot be enabled when using xo-server as a non-root user ...

Current behavior

Log shows: "EACCES: permission denied, scandir '/root/.config/xo-server-audit'"

@badrAZ
Copy link
Contributor

badrAZ commented Mar 6, 2020

Hi,

Did you configured a specific user for running xo-server? Thank you.

# User to run XO-Server as.
#
# Note: The user can be specified using either its name or its numeric
# identifier.
#
# Default: undefined
#user = 'nobody'
# Group to run XO-Server as.
#
# Note: The group can be specified using either its name or its numeric
# identifier.
#
# Default: undefined
# group = 'nogroup'

@badrAZ
Copy link
Contributor

badrAZ commented Mar 6, 2020

After investigation,

This issue can be triggered when xo-server is ran with the root privileges then change the process user after start.

@emersonkfuri
Copy link
Contributor Author

Hi,

Did you configured a specific user for running xo-server? Thank you.

# User to run XO-Server as.
#
# Note: The user can be specified using either its name or its numeric
# identifier.
#
# Default: undefined
#user = 'nobody'
# Group to run XO-Server as.
#
# Note: The group can be specified using either its name or its numeric
# identifier.
#
# Default: undefined
# group = 'nogroup'

Hello badrAZ! Yes, I ran xo-server with a specific user and group.

@badrAZ
Copy link
Contributor

badrAZ commented Mar 9, 2020

Hi,

Thank you for your response, It's due to an issue in a tool used in the audit log plugin. I've created an issue in the dedicated repository.

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

Successfully merging a pull request may close this issue.

3 participants