db2ldif fails to take backup after running as root user

Solution Verified - Updated -

Issue

db2ldif fails to take backup after running as root user

    # /usr/lib64/dirsrv/slapd-atolani/db2ldif -s "dc=pnq,dc=redhat,dc=com" -U -a /backup/data.ldif
    Exported ldif file: /backup/data.ldif
    [04/Jul/2012:16:45:49 +051800] - Backend Instance(s):
    [04/Jul/2012:16:45:49 +051800] -        userRoot
    ldiffile: /backup/data.ldif
    [04/Jul/2012:16:45:49 +051800] - db2ldif: can't open /backup/data.ldif: 13 (Permission denied)
    [04/Jul/2012:16:45:49 +051800] - All database threads now stopped

Environment

  • Red Hat Directory Server (All Versions)
  • db2ldif

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