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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.