LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-22-2008, 03:12 PM   #1
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Untar an archive as root -> weird permissions


Hi,

whenever I untar an archive as root, the permissions of all untarred directories are 777. When doing the same as regular user, they are 755. What could be the problem?
 
Old 05-22-2008, 06:01 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 209Reputation: 209Reputation: 209
There is no problem as such.

Untarring as root gives read, write & execute permission across the board whereas, when you untar as a regular user, as the owner of the file(s) you automatically have read, write and execute permission but for people in your group or in the group others they only have read and execute permissions. You as the owner of said files would need to assign write permissions for them.

The real problem is one of security. This is one of the reasons why you should always untar your archives as a regular user and only do the final installation procedure as root.

I hope my explaination makes sense

Last edited by {BBI}Nexus{BBI}; 05-22-2008 at 06:03 PM.
 
  


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
weird: directory permissions change inadvertently stabu Slackware 3 12-03-2006 01:20 PM
Weird File Permissions Issue SiLiCoN *BSD 1 04-08-2005 05:41 AM
I want weird filesystem permissions iluvatar Linux - Security 8 03-11-2005 10:01 AM
Very Weird Sound Problem....Permissions? rm6990 Fedora 2 08-12-2004 06:17 AM
importing an MS Outlook archive archive.pst alloydog Linux - Software 2 08-29-2003 04:02 PM


All times are GMT -5. The time now is 07:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration