Quote:
Originally Posted by
prinsh
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/
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.