Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 320 - tar dumps wrong user/group values for users not in /etc/passwd
tar dumps wrong user/group values for users not in /etc/passwd
Product: Red Hat Linux
Classification: Retired
Component: tar (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  Show dependency treegraph
Reported: 1998-12-06 18:25 EST by J|rgen Christoffel
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-03-08 13:02:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description J|rgen Christoffel 1998-12-06 18:25:05 EST
when tar dumps and later extracts files without an owner
listed in /etc/passwd it erroneously uses the owner/group of
the last file which had a valid owner. I had to reconfigure
my boot disk and thus dumped its contents with tar,
installed a fresh Redhat 5.2 and restored the data while the
virgin passwd file from the install was in place.

All user files suddenly belong to root because no user
entries exist in /etc/passwd during the restore.

A work around is to use tar's -o option to create old style
archives. Existing tar files may be extraced with the
undocumented option --numeric_owner. The real solution is to
patch the caching in names.c (sent via separate mail).
Comment 1 Mike Maher 1999-03-08 13:02:59 EST
added patch and rebuilt for next release.
currently in rawhide.

Note You need to log in before you can comment on or make changes to this bug.