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

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 4 Mar 2008 14:56:01 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: chown with not existing user/group
Message-ID: <20080304135601.GT18407@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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> <47CD5140 DOT 5090306 AT byu DOT net>
MIME-Version: 1.0
In-Reply-To: <47CD5140.5090306@byu.net>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Mar  4 06:40, Eric Blake wrote:
> | 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.

Right.  The error code in question is this:

  [EINVAL]
    The owner or group ID supplied is not a value supported by the
    implementation.

We *could* create non-existant SIDs in the security descriptors of
files, but I don't know what the sense would be.  These SIDs would
never, on no machine, have a real user or group representation.  It's
not quite comparable with using non-existant uids on a Unix box.  These
uids can exist on another machine where they make sense.  That's not how
it is with SIDs since SIDs are bound to a computer or domain.  Fake SIDs
are bound to nothing at all and are never correctly recognized.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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