*BSD News Article 74227


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!news.uoregon.edu!hunter.premier.net!op.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: tar bug?
Date: 19 Jul 1996 23:32:34 GMT
Organization: Private BSD site, Dresden
Lines: 20
Message-ID: <4sp5ui$1ft@uriah.heep.sax.de>
References: <4sm2s3$7t0@pelican.unf.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

caddy@osprey.unf.edu (Cliff Addy) wrote:

> We're having a problem when restoring from a tar archive, whether from 
> tape or file.  Access perms for "other" are never restored, they always
> end up as no access.  This is a major headache, one a recent restore, I
> had to hand-set the perms on hundreds of files.

Firstly, you should probably use dump/restore in order to backup file
systems.  (This is my usual plug here. :)

Second, tar normally keeps the umask of the invoking user intact, so
if your umask prohibits anything for `other', tar will as well.  You
can override this for GNU tar with the -p option.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)