LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 11-23-2002, 11:45 AM   #1
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 45
Question Problem with Root and untaring/install permissions


This is has me confused

My problem is that when I go to untar a file, or run make install, as root (and only root) the file permissions change to a different number, and nothing is ever the same. This is a huge problem for me, as this shows here:

-rw------- 1 root root 4432926 Nov 23 17:18 gimp-data-extras-1.2.0.tar.bz2
-rw------- 1 root root 824407 Nov 23 17:13 xchat-1.8.10.tar.bz2

The two files are owned by root. When I untar them individually I get this at the xterm:

drwxrwxr-x 4 39902 100 496 Dec 25 2000 gimp-data-extras-1.2.0
drwxrwxr-x 9 500 500 920 Nov 23 17:38 xchat-1.8.10

As you can see, the new owners are 39902, 100 and 500!!! All I ran was this command:

tar xvjf filename.tar.bz2

Plus is the time right for the gimp-data-extras directory? Surely it should be the same day as Nov 23?!?

The thing is that this happens when I try to make install, fscking everything up, but only as root, the normal users accout are fine, which makes me a bit worried to be honest.

I think it is something simple, but I don't have a clue. Any help would be appreciated. Thanks.
 
Old 11-24-2002, 09:54 AM   #2
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: fedora, slackware, suse
Posts: 448

Rep: Reputation: 31
An innocent explanation

My experience is that invoking tar as root preserves orginial owners. Simply, you do not have the UID or GUD found on the original system where the tar file was written (not that they had to have them either necessarily ;-) ...

Do yourself a test. Write a small tarfile as one user. Untar this as root. Untar this as another user on your system. Note the owners of the untarred files. Typically, root will preserve the original owners (as we would like it to), while files untarred by simple user will generally by default be owned by that user.
 
Old 11-24-2002, 07:15 PM   #3
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Original Poster
Rep: Reputation: 45
Red face Problem solved - I think

I think (in fact I know!) your right about permissions, they are preserved so I was barking up the wrong tree. Whoops.

Anyway, what had happened was that I untared some fluxbox styles and they ended up changing the permissions of the style directory, not allowing access for user accounts, so I thought that root was untaring wrong cus of some other problems I had had with my lfs distro. But they were all unrelated, just happened at the same time.
 
  


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
Problem unzipping/untaring any linux kernel pianom69 Linux - Newbie 4 04-20-2004 12:53 AM
When untaring, where do they go? BaZiL Linux - General 2 09-22-2003 05:22 AM
Problem with Root and untaring/install permissions CragStar Linux From Scratch 1 12-13-2002 07:14 AM
Help with untaring files KevStA Linux - General 3 05-19-2002 12:53 PM
permissions on /root from default install hanzerik Slackware 2 05-15-2002 12:52 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration