delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/20/14:06:15

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=OG9ALnsZgoH5zxXoNEMqXEf0TjNi9OPNTgWIiv19ykkW5+kOSjBQI
0lioUjh9Rb56shndHCFJNukZxYPJntW4lf7Aj2p8UGlQemu0gt3WthiZIbww5jXt
UpM5An16nPYAKl9rXSdjFeGfUCCRTrItQZnGIPHMct0/I3WyzP+DBw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=G3osMJ3uEPoHiDQZ7KeB94s4CjM=; b=I0KbmTQ1KYwSnc27B8xLRepvTaHP
09bWsuz576EVcCcTebHUlKxt1EzSPB8ZcKz4mGqgV4Nqj8dp5ZaTlqpJWTNCrn3x
ic5i24goUDv+jo+bGDbZDMqd0mkpXvPLIeDzZaX4J45oU7tw5/Lt5nsCycnTqYpQ
QOGSgK+MPM4ESEo=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Fri, 20 Mar 2015 19:04:49 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: after update to cygwin 1.7.35(0.287/5/3) all file permissions in cygwin are 070
Message-ID: <20150320180449.GA12906@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAA3aKc8jHZ02MMcDeJ36jgZFiLFu4gS=pDtS1f=zovaYfJud6Q AT mail DOT gmail DOT com> <CAFrJEvPLneS13L2EBVewRn=g6BRACfdM+7kbvjwusLHO6dkoyg AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAFrJEvPLneS13L2EBVewRn=g6BRACfdM+7kbvjwusLHO6dkoyg@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--5vNYLRcllDrimb99
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mar 20 21:15, Rexdf wrote:
> > i have been using cygwin for many years and currently most of my
> > systems are at 1.7.32(0.274/5/3).
> > i had to get an update to cygwin/X which forced me to also update
> > cygwin. with the update, nearly all windows files have the permission
> > setting of 070 (---rwx---) even when the file is owned by me, and as a
> > consequence most applications fail to load or cannot load dll's or
> > other really annoying issues.
> >
> > is there some "magical" new setting to make cygwin recognize that
> > files owned by me are at least r/w?
> >
>=20
> I don't know what is your situation, but i can give some suggestion.
>=20
> AFAIK, 1.7.34+ seems to use the real Windows ACL ( at least partly).
> It means that the 700 file really cannot access by other Windows
> accounts.
>=20
> First of all, try the follwoing code from mintty. Then restart X.
> mkpasswd -l > /etc/passwd
> mkgroup -l > /etc/group

Why?  The idea of the changes in 1.7.34+ were to allow to get rid of
/etc/passwd and /etc/group.  Remove the files and be done with them,
unless you're in a situation which requires you to make special
settings.

May I suggest to read the User's Guide, especially the new docs
explaining the changes to account handling in
https://cygwin.com/cygwin-ug-net/ntsec.html?

As I wrote multiple times in the last couple of months, if the
documentation is unclear, please ask and let's try to figure out to
improve the documentation.  As I'm the person who hacked this stuff, I
have probably a completely different view on what's important and what
needs explaining.

> If it is still 0700 and you right click Properties/Security from
> windows explorer.exe to make sure your real Windows ACL permission is
> true wrong. Then the following command may be helpful.
>=20
> Start cmd.exe  as Administrators.
> cd to folder contain cygwin folder.
> Run following:
>=20
> takeown /F cygwin /R
> icacls cygwin /T /grant your_account_name:F

So what about using Cygwin for this?  Start mintty as administrator
and then:

  $ chown <your account>:<your group> filename
  $ chmod 700 filename
  $ setfacl -b filename  # See the User's Guide!


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--5vNYLRcllDrimb99
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJVDGFBAAoJEPU2Bp2uRE+gxe8P/2DN4A/KsqJVKaV3YwmTfh6u
bwVt0ea/ehiZh8S4bMW4mX9C8ed2RaivDFTiofA7Ym1nhzx1hGuVMCrXYqXkVKr3
7JsoBL0Qje9NrUZb3AZDWaovTdPkMk1bU1mVNNSmv7BZvuaX6QT1bZdbrLNTzDpK
FfK4e6fRHTq+mR3a4NA+5L9zHwovg/u+hJZ27pgXaZjzgfAbqlJ8nF82qRAZnpYX
Um5rirXYkzZWXHE/HkpgSmAY9LpAVr7DiVsAfuk598y9H+i40T2gyl+e7WhOl+Nc
gXKhMZ5+MGtET08Xjzbe+gB3GJkyMPx8doDlbq5HIqtp2p0kyf21q1Lc8fsUk1KF
uJ4b/TELzK9UfW9w5T7+t1oiZgt45r9yMnM2WPfXYIBBHJEY+XLR8Ca6JD0AAvNi
mF/FrZWYPI/ZS4X+vZriAcClDEx4Mwi+BcRoO3JEiF5ITeJwQYZ/8k2c0WCyZA0S
yDwtAiJucXx9B6+Ea0+NuRC83KTEUg5lGOhVJALoSK96xoZX/vo1RKxXeM+FRLhL
YSvciUfujoin0ZDU/uMEBvTdfGWN9ZFltSwO1YyPkJ2if6GMfmBIjYIqg5enyshY
LJ/TWPBS3Wj0Afg42HRXxO1m16KBpL1QYhBznbgBHLzdKk0r+zdrmQjf7Z2GjUlB
YgUG640VOIY3hHXw2djW
=9Bzi
-----END PGP SIGNATURE-----

--5vNYLRcllDrimb99--

- Raw text -


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