Running tar as root user gives Cannot open: Permission denied error
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.