The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 10:10 AM
SSH Problem auth problem budrito UNIX for Advanced & Expert Users 1 03-17-2004 10:12 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2008
ajcannon ajcannon is offline
Registered User
  
 

Join Date: Aug 2007
Location: Binfield, Berkshire. UK
Posts: 91
problem with tar

First of all I have already asked about this in the scripts/perl forum but the advice I got did not do the trick.

A script I have to use unzips some xxx.tar.gz files and then tries to tar -xvf them. on the tar -xvf I get the following:-

tar: code/sql: Cannot utime: Operation not permitted
tar: code/scripts: Cannot utime: Operation not permitted
tar: code/maestro: Cannot utime: Operation not permitted
tar: code: Cannot utime: Operation not permitted

It was suggested to me that the OS was not happy with the tar file (maybe created under another flavour of UNIX). Accordingly, I have now got the tar files created under the same unix flavour

Linux <hostname> 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux

Does anyone have any ideas?

regards
  #2 (permalink)  
Old 03-11-2008
oktawik oktawik is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 10
It looks like an issue with permissions? Does the directory and the files that you untar belong to the user that invokes the script? Try to use the option --no-overwrite-dir.

Regards,
-Oktawik.
  #3 (permalink)  
Old 03-11-2008
girish.batra girish.batra is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 73
I also feel that it seems to be a permission issue

Regards
  #4 (permalink)  
Old 03-11-2008
ajcannon ajcannon is offline
Registered User
  
 

Join Date: Aug 2007
Location: Binfield, Berkshire. UK
Posts: 91
Many thanks to both for the response.

I will investigate this

cheers
  #5 (permalink)  
Old 03-11-2008
ajcannon ajcannon is offline
Registered User
  
 

Join Date: Aug 2007
Location: Binfield, Berkshire. UK
Posts: 91
Hello again,

this is beginning to drive me nuts.

I have opened up the permissions on the target dir (definied via a -C switch in the tar command) and it still moans about utime (tar: code: Cannot utime: Operation not permitted).

Can anyone give me an idea about what permissions are expected for utime to be happy?

BR

Alastair
  #6 (permalink)  
Old 03-11-2008
jgt jgt is offline
Registered User
  
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 439
Permission to give it a beer.
  #7 (permalink)  
Old 08-01-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
What kind of filesystem are you extracting it on to?
Closed Thread

Bookmarks

Tags
linux, utime

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0