LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 10:03 PM   #1
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
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, 04:12 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:55 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
Open Source Consulting | Domain Registration