infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Operating Systems
TAR and file permissions
Roy Osumi
I am trying to tar up a couple of sites using AIX 5.2. I am using tar -cvf tarname.tar directory/ etc. when I untar (tar -xvf tarname.tar) my file permissions on my target are not the same as my source. How can I get an exact copy of my source?
Find more posts tagged with
Clovertech
Comments
david_barr
tar -xvfp
Read the fine manual for a description of the -p flag.
Roy Osumi
I tried it "tar -xvfp main_022410.tar" in AIX 5.2 I get a error message:
tar: Cannot open p: No such file or directory
AIX doesn't seem to like the p function modifier.
I thought if I untarred as root I should get the original owners and permissions. This was not the case for the majority of the files. Owners were good the rights were not. Most were only rw-r-r where I was expecting rw-rw-r. I even had issues with directory rights.
david_barr
You might want to check which tar executable you're running. For some reason Cloverleaf ships with it's own copy of tar, and the OS should also have one installed. The version of tar with our install (QDX 5.5, HPUX) supports the -p option.
System
Originally posted by Chris Williams
When using the -f option for the standard version of tar the next thing on the command line must be the file name. That's why it's reporting it can't find the file "p". You should always make -f the last of multiple options unless you're reading/writing to the tape drive.
Roy Osumi
Yep that did the trick. tar -xvpf filename Awesome. Thanks to both David and Chris for your help.