Need help preserving permissions when using tar?

John T. Kohl jtkohl at mit-priam.UUCP
Thu Jul 18 01:53:56 AEST 1985


In article <2424 at sun.uucp> gnu at sun.uucp (John Gilmore) writes:
>> Does anyone know of a way to preserve file and directory permissions
>> and ownerships when using tar?
>
>The tar in 4.2bsd (and maybe other Berkeley releases) puts directory
>permissions into the tar file and creates the directories with those
>permissions when you read the tar file.

But it only sets ownerships if the user who extracts is root.


-- 
The opinions expressed above, if any, are mine.

John T. Kohl
	UUCP: ...!decvax!mit-athena!jtkohl
	ARPA: jtkohl at mit-athena.ARPA



More information about the Comp.unix.wizards mailing list