LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2003, 06:26 AM   #1
kakultech
LQ Newbie
 
Registered: Jul 2003
Location: Delhi,India
Posts: 8

Rep: Reputation: 0
Unable to use tar -xzvf with a abc.tar.gz file


Hai Folks,

I have download a file abc.tar.gz from internet .It is a driver for some device.I am using following command for extracting it.

tar -xzvf abc.tar.gz

it shows an error message like

can not change ownership to uid 324 67 ,gid 20peration not permitted.

I am using P3 intel machine with Red Hat Linux 7.1 .

Waiting for reply
Thanx in advance.
Sachin Rastogi:
 
Old 07-31-2003, 06:43 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Hm. Have you tried changing permissions as root? What does 'ls -l abc.tar.gz' show? And what does 'file abc.tar.gz' say. Want to make sure it's actually a tarball, first, though it probably is or tar would have complained about that as well. I'm not sure what it means but I'm guessing someone set the permissions on the tarball weird and the system thinks you, as user, don't have permissions for the file. Does the site where you downloaded it from have any information about it?
 
Old 07-31-2003, 07:08 AM   #3
kakultech
LQ Newbie
 
Registered: Jul 2003
Location: Delhi,India
Posts: 8

Original Poster
Rep: Reputation: 0
Hai digiot,

abc.tar.gz have following permission
-rwxr-xr-x
I m working as a superuser on mu system.Now pl . continue this problem
 
Old 07-31-2003, 07:27 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Oh. It must be a different kind of issue than I was thinking of - might have had it backwards.

I was about to give up but then found this:

http://www.linuxquestions.org/questi...2001/05/3/2635

Maybe it'll work if you're *not* root. If not, hopefully someone else can figure it out.
 
Old 07-31-2003, 07:28 AM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
kakultech

what does tar tzvf abc.tar.gz show?
 
Old 07-31-2003, 07:40 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
are you sure it doesn't actually extract anyway? To me that looks like an error you'd get from trying to change attributes on a fat32 drive, which is impossible...
 
Old 11-08-2010, 11:03 AM   #7
ozled
LQ Newbie
 
Registered: Apr 2006
Location: France
Distribution: FC4, Suse 10
Posts: 6

Rep: Reputation: 1
Belated answer

I know it has been a long time, but this thread appears at the top of the Google search so this may help someone.

When extracting with tar, the default for the root user is that tar attempts to retain the owner:group of the files originally stored in the tar.
When transferring tar files across systems, this may cause problem if the same user does not exist in the target machine.
Using the option --no-same-owner will force tar to extract the files and assign them root as owner.
The error does not appear when extracting with a normal user because in that case the default option is --no-same-owner.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
curious: tar -xzvf ... nadroj Linux - Newbie 10 08-01-2021 07:15 PM
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM
samba install by tar xzvf wesleywest Linux - Newbie 6 11-01-2004 09:01 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration