delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/02/08:29:30

X-Spam-Check-By: sourceware.org
Message-ID: <44D09AAC.6090307@byu.net>
Date: Wed, 02 Aug 2006 06:29:32 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, kevin DOT till AT zmanda DOT com
Subject: Re: tar does not use --same-owner for SYSTEM user
References: <44CFF8B0 DOT 3000101 AT zmanda DOT com>
In-Reply-To: <44CFF8B0.3000101@zmanda.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Kevin Till on 8/1/2006 6:58 PM:
> Hi,
> 
> I'm running GNU tar 1.5.1 on cygwin version 2.510.2.2 (Window XP).

Really?  The current version of cygwin is 1.5.21, not 2.510.2.2 (which is
the version of setup.exe).  And the current version of tar is 1.15.91, not
1.5.1.

Perhaps if you had followed directions:
> Problem reports:       http://cygwin.com/problems.html
and included the output of 'cygcheck -svr' as a text attachment, I would
be better able to answer you, because I would know exact version numbers
instead of your typos.

> 
> Running tar to restore files, owner information is not preserved.
> That's: all restored files are owned by SYSTEM.

I need more details.  How are you running tar as the SYSTEM user?

> I suspect that tar is not recognizing SYSTEM user on cygwin/windowXP as
> superuser.

Correct - tar assumes that it is run by the superuser if its uid is 0, but
SYSTEM's uid is 18.  In other words, cygwin doesn't have a default notion
of superuser (and in fact, on newer Windows platforms, SYSTEM does not
have all privileges by default, which is why things like sshd have to
create a new non-SYSTEM user that has additional privileges).

> Does anyone have the same experience or a workaround for it?

Given more details (such as a simple test case, please), I might be able
to provide a patch.  In the meantime, there's always chown.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin tar maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE0Jqs84KuGfSFAYARAsuhAKDJ7vfC/CLBaIdHZqam1xnAw7y7QACdGa1Y
5NTHh0JFUBImP5zuu6LTwoU=
=3uWI
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019