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:
--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.
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.
Alright. From that I can see the following facts:
1) The owner of all those files / directories is the user LOCAL\cifsusr (as shown in the 2nd column), and they are assigned to the group with the same name (LOCAL\cifsusr, as shown in the 2nd column separated from the owner by a forward slash "/"). That is to say:
LOCAL\cifsusr/LOCAL\cifsgrp --> owner / group.
2)The permissions of those files / directories are set to 770 (rwx for owner, rwx for group, none for others).
In your first post, it looks like you're trying to untar the tarball as user AIROOT (which is different from root). So, if user AIROOT is not added in the LOCAL\cifsusr group, he may not be able to untar the tarball because "others" do not have any permissions on the files included in it.
My suggestion would be to 1) try to untar the tar.gz file as root, 2) as root, perform a recursive chmod 755 on all the files / directories. Then try to untar as the AIROOT user.
Hope it helps. Let me know if I can be of further help.