problem with tar


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users problem with tar
# 8  
Old 07-31-2008
To invoke utime() you must:
1) own the file or be root
2) have write permission on the file or be root

My guess is that your archive has files owned by you but read only.
# 9  
Old 08-01-2008
Quote:
Originally Posted by Perderabo
To invoke utime() you must:
1) own the file or be root
2) have write permission on the file or be root

My guess is that your archive has files owned by you but read only.
Yes, but the funny thing is, I either owned every file or had full rights to it as it was in my primary group.

It is some weird thing with the server, but I have no access to that level of it. If I did it wouldn't be RHEL. Smilie
# 10  
Old 08-01-2008
What kind of filesystem are you extracting it on to?
# 11  
Old 08-01-2008
Quote:
Originally Posted by jdierking
Yes, but the funny thing is, I either owned every file or had full rights to it as it was in my primary group.
There is no such thing as "full rights" to a file you do not own unless you are root. Invoking utime() is not reading, nor writing, nor executing a file. You must own the file or you do not have the right to invoke utime(). This is a posix mandated restriction.

Other things you can't do to a file you don't own even if the permissions are 777: chmod, chgrp, and chown. Many OS's won't allow chown even by the non-root owner, but allowing a non-root non-owner to chown a file is a posix violation. All of these things affect the inode, not the data. You can have full right to the data in a file you don't own, but not to the metadata that describes the file. The metadata belongs only to the file owner.
# 12  
Old 08-01-2008
Why dont you just try to run script as root under empty directory and if it works, so we can say problem is of permissions.

- nilesh
# 13  
Old 08-01-2008
Quote:
Originally Posted by ynilesh
Why dont you just try to run script as root under empty directory and if it works, so we can say problem is of permissions.

- nilesh
I do not have that level of access. This is a server setup by our network department for us to develop on.
# 14  
Old 08-01-2008
Quote:
Originally Posted by Annihilannic
What kind of filesystem are you extracting it on to?
It is an ext3 partition that is apparently on a SAN.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Linux

tar problem

can someone help me here. apparently, the colon i included in the name of this file is making it difficult for tar to untar it. please help ####### tar xvf DailyConfigs_Nov-19-11\:00-2009.tar rsh: DailyConfigs_Nov-19-11: Name or service not known tar: DailyConfigs_Nov-19-11\:00-2009.tar:... (4 Replies)
Discussion started by: SkySmart
4 Replies

3. 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

4. Shell Programming and Scripting

problem is tar

i have some 685 files in my directory.Below the count: find . -name "CurrentCollectorMeterReadBackup_2009*" -exec ls -ltr {} \; | wc -l 685 i want to tar them but it is telling me arg list too long. how to tar all this files in one shot tar -cvf - -L... (1 Reply)
Discussion started by: ali560045
1 Replies

5. UNIX for Dummies Questions & Answers

Tar problem

I've done a tar -cvf data.tar * in our live data directory on a Solaris machine. I copy the tar file to the test area and try tar -xvf data.tar . and it uses the full path in the tar file and overwrites the live ones again. I've used tar many a time and don't understand why its happening.... (1 Reply)
Discussion started by: kinhell
1 Replies

6. 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

7. 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

8. UNIX for Advanced & Expert Users

tar problem

Can someone please verify for me if tar compresses the directory or filesystem it is asked to back up?? reason am asking is I checked the size of the /home directory before running a tar command now, after I ran the tar command and the tar was done extracting the directory from the archive, I... (2 Replies)
Discussion started by: TRUEST
2 Replies

9. UNIX for Advanced & Expert Users

tar problem

hi , On AIX 4.3.3 I typed the following command tar -cvf <filename> ( actually I forgot to type the device name) the output was change in the file size to 10240 bytes I tried tar -xvf to extract the same but file size is same. The file was "txt" file and was readable before the... (2 Replies)
Discussion started by: amit
2 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