LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-31-2005, 03:00 AM   #1
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Tar permissions


Im having a rather odd issue with tar. Im currently developing a howto on how to make your own distro from a lfs linux system but every time i try and tar up the system the permissions are not saved in the tar file.

the command i am using is

tar -cvjpf test.tar.bz2 /archive/test/


test is the location of the copied operating system.


this does not give me errors but when I extract with this command on another pc
tar -xjvpf test.tar.bz2

the permissions are off by the user and group owners

as far as the read and write permissions they are correct so am i missing something here or just doing it wrong..... any ideas ?
 
Old 05-31-2005, 03:57 AM   #2
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
tar czpvf


or read the option --preserve-permissions from 'man tar'
 
Old 05-31-2005, 04:04 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by saneax
tar czpvf
isn't that like the same thing he's already doing except with gzip instead of bzip2??
 
Old 05-31-2005, 04:11 AM   #4
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
Oh! yeah... my mistake...
 
Old 05-31-2005, 04:11 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
exvor, you need to make sure the user/group exists on the destination machine... but more importantly: at extraction time you need to use an account capable of setting those permissions, like root, for example...
 
Old 05-31-2005, 02:54 PM   #6
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Original Poster
Rep: Reputation: 87
Ok got the permissions thing worked out i wasent extracting as the root user but now a new issue. I cant chroot into the temp system it gives me a kernel too old error ?
 
  


Reply



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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
fat32 permissions change/tar problems microsoft/linux Debian 5 10-18-2004 09:03 AM
tar with permissions alaios Linux - General 2 09-23-2004 04:08 PM
permissions on tar backup files durden2.0 Linux - Newbie 4 08-03-2004 11:50 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM

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

All times are GMT -5. The time now is 06:22 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