Problem with tar on RHEL5.8

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Problem with tar on RHEL5.8
# 1  
Old 07-05-2013
Problem with tar on RHEL5.8

Hi All,

I have a tar file that I want to extract, I need the permissions and owners of the file to be the same as on when they were tared.

I am using this command to un-tar the file.

tar --acl --xattrs --same-owner --same-permissions -zvxf MANJUNATH_acl_corner_cases.tgz -C /cifs1/share1/

sometimes, the files gets un-tar properly and max of the time I 'm hit with these errors...

[AIROOT@ib35-12s9 crossProtocolACLTests]$ tar --acl --xattrs --same-owner --same-permissions -p -zvxf MANJUNATH_acl_corner_cases.tgz
full/
full/TC75_file_1.py
tar: full/TC75_file_1.py: Warning: Cannot acl_from_text
full/TC76_file_1.py
tar: full/TC76_file_1.py: Warning: Cannot acl_from_text
full/.fixed
full/L1/
full/L1/L2/
full/L1/L2/L3/
full/L1/L2/L3/L4/
full/L1/L2/L3/L4/L5/
full/L1/L2/L3/L4/L5/test_file_1.py
tar: full/L1/L2/L3/L4/L5/test_file_1.py: Warning: Cannot acl_from_text
full/L1/L2/L3/L4/L5/test_folder_1/
tar: full/L1/L2/L3/L4/L5/test_folder_1: Warning: Cannot acl_from_text
tar: full/L1/L2/L3/L4/L5/test_folder_1: Warning: Cannot acl_from_text
tar: full/L1/L2/L3/L4/L5: Warning: Cannot acl_from_text
tar: full/L1/L2/L3/L4/L5: Warning: Cannot acl_from_text
tar: full/L1/L2/L3/L4: Warning: Cannot acl_from_text
tar: full/L1/L2/L3/L4: Warning: Cannot acl_from_text
tar: full/L1/L2/L3: Warning: Cannot acl_from_text
tar: full/L1: Warning: Cannot acl_from_text


[AIROOT@ib35-12s9 crossProtocolACLTests]$ tar --version
tar (GNU tar) 1.15.1

Please help me find a way to overcome this. Please find the attached tar file. waiting for a quick response :/
# 2  
Old 07-05-2013
As far as I can see, in my RHEL box
Code:
gacanepa@redhat /home/gacanepa:cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
gacanepa@redhat /home/gacanepa:tar --version
tar (GNU tar) 1.15.1

the --acl option doesn't exist. It is --acls. Also, please note from the manpage of tar that --xattrs automatically sets the --acls option:
Code:
       --acls this option causes tar to store each file's ACLs in the archive.

       --selinux
              this option causes tar to store  each  file's  SELinux  security  context  information  in  the
              archive.

       --xattrs
              this  option  causes  tar  to store each file's extended attributes in the archive. This option
              also enables --acls and--selinux if they haven't been set already, due to  the  fact  that  the
              data for those are stored in special xattrs.

Hope it helps.
# 3  
Old 07-05-2013
Thanks for the reply..I really appreciate it.
I tried to the command with and without --acls option, and neither of it helped.
I am still getting the same error. I am more confused as the its just the warning: cannot acl from text and doesn't return and further info.

I have checked for the permissions on the file when it was successfully untar'd and there are differences in the permission and accesscontrol list for the users on the files.

Please suggest something.
# 4  
Old 07-05-2013
I belive you will need to patch...
Red Hat Customer Portal

What is the output of
Code:
rpm -qa tar

If it's lower version then specified in the bug, then patching is required.

Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
# 5  
Old 07-05-2013
Thanks Peasant for the reply...Here is the output :

[root@ib35-19s9 0011_run_swarm]# rpm -qa tar
tar-1.15.1-31.el5
# 6  
Old 07-05-2013
Quote:
Originally Posted by prinsh
Thanks Peasant for the reply...Here is the output :

[root@ib35-19s9 0011_run_swarm]# rpm -qa tar
tar-1.15.1-31.el5
That is actually a newer version than the suggested patch itself (which is tar-1.15.1-30.el5).
Just a shot in the dark here... what is the output of
Code:
tar -tvzf MANJUNATH_acl_corner_cases.tgz

?
# 7  
Old 07-08-2013
Sorry, for a delayed response. Please find the output mentioned below..
[root@ib35-12s9 share1]# tar -tvzf MANJUNATH_acl_corner_cases.tgz
drwxr-x--- LOCAL\cifsusr/LOCAL\cifsgrp 0 2012-03-09 21:07:34 full/
-rwxrwx--- LOCAL\cifsusr/LOCAL\cifsgrp 177 2012-02-09 22:51:01 full/TC75_file_1.py
-rwxrwx--- LOCAL\cifsusr/LOCAL\cifsgrp 177 2012-02-09 22:51:04 full/TC76_file_1.py
-rw-rw---- root/root 0 2012-03-09 20:52:53 full/.fixed
drwxrwx--- LOCAL\cifsusr/LOCAL\cifsgrp 0 2012-03-09 21:07:26 full/L1/
drwxrwx--- LOCAL\cifsusr/LOCAL\cifsgrp 0 2012-03-09 21:07:25 full/L1/L2/
drwxrwx--- LOCAL\cifsusr/LOCAL\cifsgrp 0 2012-03-09 21:07:24 full/L1/L2/L3/
drwxrwx--- LOCAL\cifsusr/LOCAL\cifsgrp 0 2012-03-09 21:07:25 full/L1/L2/L3/L4/
drwxrwx--- LOCAL\cifsusr/LOCAL\cifsgrp 0 2012-03-09 21:07:25 full/L1/L2/L3/L4/L5/
-rwxrwx--- LOCAL\cifsusr/LOCAL\cifsgrp 177 2012-02-09 22:51:43 full/L1/L2/L3/L4/L5/test_file_1.py
drwxrwx--- LOCAL\cifsusr/LOCAL\cifsgrp 0 2012-02-09 22:51:33 full/L1/L2/L3/L4/L5/test_folder_1/
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

DB2 ODBC connectivity problem in RHEL5 32 bit

Hi, I installed Db2 9.7 on RHEL5 32bit . Instance Name is db2inst1 amd in that i created database as mydb. I exported env variables for classpath ,db2dir,db2instance LD_LIBRARY_PATH ,PATH ,ODBC, ODBCHOME ,ODBCINI My application needs ODBC connectivity and so I modified odbc.ini file . ... (0 Replies)
Discussion started by: roopalidalvi231
0 Replies

2. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

3. Ubuntu

Problem with tar

Hello everyone, I´ve got a problem when I try to untar a file. The following errors appear: tar: Skipping to next header tar: Skipping to next header tar: Exiting with failure status due to previous errors Can anyone help me? Thanks in advance! (1 Reply)
Discussion started by: katkat
1 Replies

4. Red Hat

RHEL5 - desktop problem

hi all, any one has occured below issue before? i login to RHEL 5 using user name root. howver, after logged, nothing displayed on desktop, total was empty on desktop. some more, right click mouse right button, no such options to choose. any one has this issue before? any idea to... (3 Replies)
Discussion started by: maxlee24
3 Replies

5. Red Hat

RHEL5 Kickstart NFS & DHCP Problem

I just finished setting up a Kickstart Server for our RHEL 5 installs. It's configured to use the PXE boot and NFS for the installation. Everything works fine when I just build one machine at a time. The installation works from begining to end. But when I try the install three machines at... (5 Replies)
Discussion started by: apfistler
5 Replies

6. Linux

RHEL5 Kickstart Problem... HELP!

Folks, Im hoping you guys can help me. Here is a description of what I have going on. Fresh VM, trying to run a Kickstart Install on it for RHEL5. I am looking to access the kickstart file through nfs. I boot from a local ISO image and everything goes fine, I get to the boot prompt and enter... (3 Replies)
Discussion started by: mkono
3 Replies

7. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

8. Shell Programming and Scripting

tar doubts - problem with tar

The below tar command works fine for me, tar -cvf - `find ./srcdir -type d` | (cd ./destdir ; tar -xvf - ) but this version is giving error to me: cd ./srcdir && tar -cf - . | gzip -9 | cd ../destdir && gzip -d | tar -xf - error is: gzip: compressed data not read from a terminal.... (2 Replies)
Discussion started by: royalibrahim
2 Replies

9. UNIX for Advanced & Expert Users

tar problem

I am using a tar command to backup my system. It works properly. I have had some trouble and I need to restore a few files. I am using the following command : tar xvf /dev/rmt2h myfile_to_restore The tar command seemd to work but after a long time I got the following error message :... (6 Replies)
Discussion started by: renard
6 Replies

10. UNIX for Dummies Questions & Answers

Tar Problem

I need to do a bakcup for some files, in the same tape but in diferente time.... at 9am i need the file /public/test1.txt then... tar -cvf /dev/st0 /public/test1.txt at 12pm i need the file /public/test2.txt the.... tar ¿? /public/test2.txt in this point i have problem beacuse when... (3 Replies)
Discussion started by: sokobans
3 Replies
Login or Register to Ask a Question