This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tar does not use --same-owner for SYSTEM user


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]