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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
