From owner-freebsd-questions Fri Aug 4 10:41:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id 0C98C37BA73 for ; Fri, 4 Aug 2000 10:41:25 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.84.191]) by mta02-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000804184025.TTFB3760.mta02-svc.ntlworld.com@parish.my.domain>; Fri, 4 Aug 2000 18:40:25 +0000 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id SAA01371; Fri, 4 Aug 2000 18:41:10 +0100 (BST) (envelope-from mark) Date: Fri, 4 Aug 2000 18:41:10 +0100 From: Mark Ovens To: Kahn Cc: questions@freebsd.org Subject: Re: Problems with tar. Message-ID: <20000804184110.C236@parish> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: ; from erinf@deadbbs.com on Fri, Aug 04, 2000 at 08:17:19AM -0700 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Aug 04, 2000 at 08:17:19AM -0700, Kahn wrote: > I realize that the problems are my fault, but I still need some help. > > When I tar up the home directories on my server using "zcf" as my > switches the file/directory ownerships are all reset to root:wheel and not > the actual owner. I am untaring these on a different system and have not > yet compiled the master.passwd with all of the user accounts, could that > be the problem? Tar may not be seeing the user accounts active on the > system so it resets the file/directory ownerships? > tar(1) will preserve user & group info if possible. From the manpage: -x --extract --get Extract files from an archive. The owner, modification time, and file permissions are restored, if possible.... However, I think you are correct. The files become root:wheel because the original owner/group don't exist on the target machine (user yoshi and group users don't exist on my machine): # tar ztvf waveplay-19990123.tar.gz drwxr-xr-x yoshi/users 0 23 Jan 13:55 1999 waveplay-19990123/ -rw-r--r-- yoshi/users 321 9 Sep 06:24 1998 waveplay-19990123/Makefile -rw-r--r-- yoshi/users 730 9 Sep 06:24 1998 waveplay-19990123/wavefmt.h -rw-r--r-- yoshi/users 6990 9 Sep 06:24 1998 waveplay-19990123/waveplay.c -rw-r--r-- yoshi/users 1084 23 Jan 13:55 1999 waveplay-19990123/README -rw-r--r-- yoshi/users 1876 23 Jan 13:53 1999 waveplay-19990123/README.jp # tar zxvf waveplay-19990123.tar.gz waveplay-19990123/ waveplay-19990123/Makefile waveplay-19990123/wavefmt.h waveplay-19990123/waveplay.c waveplay-19990123/README waveplay-19990123/README.jp # cd waveplay-19990123 # ls -l total 13 -rw-r--r-- 1 root wheel 321 9 Sep 1998 Makefile -rw-r--r-- 1 root wheel 1084 23 Jan 1999 README -rw-r--r-- 1 root wheel 1876 23 Jan 1999 README.jp -rw-r--r-- 1 root wheel 730 9 Sep 1998 wavefmt.h -rw-r--r-- 1 root wheel 6990 9 Sep 1998 waveplay.c # > > Thanks, > > > Erin > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- If I buy a copy of WinDelete, and it doesn't delete Windows, am I entitled to my money back? ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message