delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/03/04/08:40:36

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=xe8BsctaAAAA:8 a=5cDYJwpyQNWYMvSYzQ0A:9 a=VrHvhHToAkTiS_jZIhcA:7 a=prUCnCyQWo7a-IOidsh_AMJ212kA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10
Message-ID: <47CD5140.5090306@byu.net>
Date: Tue, 04 Mar 2008 06:40:16 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, matthieu DOT castet AT parrot DOT com
Subject: Re: chown with not existing user/group
References: <loom DOT 20080228T135447-901 AT post DOT gmane DOT org> <008b01c87a16$308a0540$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <loom DOT 20080229T091201-103 AT post DOT gmane DOT org> <20080229092205 DOT GQ9539 AT calimero DOT vinschen DOT de> <loom DOT 20080304T132211-852 AT post DOT gmane DOT org>
In-Reply-To: <loom.20080304T132211-852@post.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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 Matthieu CASTET on 3/4/2008 6:28 AM:
| Also according to my posix reading [1], chown should be able to change
perm to
| any uid/gid.

You read wrong.  POSIX also allows chown implementations to impose
additional restrictions.  And on cygwin, we impose the additional
restriction that you can't change to a uid/gid that isn't recognized by
Windows.

| I was thinking cygwin goal was to emulate as much as possible posix
| spec.

Yes, and cygwin's behavior in this case is still POSIX compliant.

- --
Don't work too hard, make some time for fun as well!

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

iD8DBQFHzVFA84KuGfSFAYARAjI9AJwI/o6Or9YnPMPHrI6wvO4byQGqZgCgn/1s
J2vBp2lLTx4nVupkqr6KNVg=
=DsSR
-----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