LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 12-05-2011, 11:03 PM   #1
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515

Rep: Reputation: 62
Slackware's 13.37 tar, and how it handles uid/gid pair on create/extract


Hello all

I was wondering if you kind folks could clarify this for me.

--same-owner
--preserve-permissions

When root creates a tarball using -zcvf the above two items are indeed part of the tarball's properties, correct?

I ask this as Slackware's manual page does not mention if they are/not the default. I've been searching online, some pages have show that the --preserve-permissions implies --same-owner, and that the --preserve-permissions option is enabled by default for user root.

Those online manpages are for gnu/tar versions older than Slackware, and hence my lack of clarity on the matter.

The info pages do not mention anything regarding this as well.

Lastly, does Slackware's tar back up 'xattr' info? Does a normal home user desktop/laptop user need worry about that? Isn't xattr info being used by KDE to tag metadata?

Thanks in advance.

Fogie
 
Old 12-06-2011, 05:12 AM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,502

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
same-owner and preserve-permissions flags apply at extraction time. You don't have to worry about them on the create.
They are both default settings when tar is run by superuser to extract files.

xattrs/acl support is a RedHat vendor extension and isn't included in the stock GNU/tar as shipped by Slackware.


I thought KDE metadata was all being put into that nepomuk/akonadi database, but I'm not an expert, so I may be wrong.


Slackware doesn't use 'SELINUX contexts', 'acls' or 'capabilities' as yet, so you should be fine for now (assuming I'm right about KDE), but it's something to bear in mind for the future as the linux world seems to be going down that road in general. I currently do my daily user home-dir backups using GNU/tar listed-incremental backups, so this is something I'm keeping in mind too.
 
  


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
mount with given uid,gid ernst Linux - General 1 09-11-2008 09:04 AM
what is uid and gid rmanocha Linux - Software 9 08-19-2008 12:03 AM
how to do a tar extract | create pipe on the fly? jjalocha Linux - General 5 12-29-2007 09:50 PM
What is my uid/gid? Jeebizz Slackware 2 11-22-2005 12:39 PM
changing uid, gid zeke1955 Linux - General 4 01-10-2004 12:53 AM


All times are GMT -5. The time now is 04:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration