Skip to content

ldap-agent fails to start because of permission error #6155

Closed
@progier389

Description

@progier389

Issue Description
A clear and concise description of what the bug is.

Package Version and Platform:

  • Platform: Fedora 39
  • Package and version: main branch
  • Browser N/A

Steps to Reproduce
Steps to reproduce the behavior:

  1. dnf install -y 389-ds-base 389-ds-base-snmp net-snmp
  2. echo master agentx >> /etc/snmp/snmpd.conf
  3. systemctl restart snmpd
  4. dscreate interactive (Create a ds instance as usual)
  5. edit /etc/dirsrv/config/ldap-agent.conf to add the new instance
  6. systemctl start dirsrv-snmp
  7. See the error (instance fails to start)

Expected results
dirsrv-snmp service should be able to start

Additional context

/run/dirsrv is created with the wrong group should be root instead of dirsrv so that both
ns-slapd and ldap-agent can read and create files in it.
Fix should be in src/lib389/lib389/instance/setup.py around # Setup tmpfiles_d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions