delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/07/09/09:05:37

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: [andyp AT parallax DOT co DOT uk: RE: permissions problem]
9 Jul 1998 09:05:37 -0700 :
Message-ID: <199807091548.LAA14927.cygnus.cygwin32.developers@kramden.cygnus.com>
To: ian AT cygnus DOT com, noer AT cygnus DOT com
Cc: cygwin32-developers AT cygnus DOT com

>From: Ian Lance Taylor <ian AT cygnus DOT com>
>Date: Thu, 9 Jul 1998 11:13:50 -0400
>
>   Date: Thu, 9 Jul 1998 01:33:20 +0000
>   From: Geoffrey Noer <noer AT cygnus DOT com>
>
>   Opinions, anyone?
>
>   Date: Fri, 03 Jul 1998 08:57:39 +0100
>   From: Andy Piper <andyp AT parallax DOT co DOT uk>
>
>   Can I petition you to change the default perms to 664?
>
>STD_WBITS is used for some things for which it doesn't necessarily
>seem appropriate, like pipes.  Posix doesn't define st_mode for pipes
>at all.  Unix systems vary on what they return.  I tested a few
>systems, and the most common return value seems to be 010000; i.e.,
>set the permission bits to zero.
>
>As far as files go, in the case where nobody has set the Unix file
>permissions, I think we should strive to make the Unix permissions
>emulate the Windows permissions.  I don't know the NT security model.
>On 95, I assume that any user can overwrite any file, so I think we
>should return a mode of 0666 (or 0777).

That sounds right to me.  Presumably, this is controllable via umask,
too, so setting of defaults should be controlled via that mechanism.

-Chris

- Raw text -


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