Running tar as root user gives Cannot open: Permission denied error

Solution Verified - Updated -

Issue

  • Permission is denied when tar command is used to open a backup tar file

    # tar xvf /backup/export.tar 
    tar: /backup/export.tar: Cannot open: Permission denied 
    tar: Error is not recoverable: exiting now 
    

Environment

  • Red Hat Enterprise Linux 3 Update 9
  • LinuxShield (VirusScan Enterprise for Linux by McAfee)

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