How to solve dsconf error - Backend userroot: can't open LDIF: 13 (Permission denied) while running as user "dirsrv"

Solution Verified - Updated -

Issue

While exporting a database in Red Hat Directory Server to custom location backup_dir with a custom name backup_file_name.ldif , it returns error:

# dsconf -D "cn=Directory Manager" -w password ldap://ldapserver.example.com backend export -l backup_dir/backup_file_name.ldif userroot
Error: Export task failed
-------------------------
Beginning export of 'userroot'
Backend userroot: can't open backup_dir/backup_file_name.ldif: 13 (Permission denied) while running as user "dirsrv"
backend 'userroot' export failed (-1)
Export failed.

Environment

  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content