delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.3.2 sourceware.org DBF3E385E006 |
Authentication-Results: | sourceware.org; |
dmarc=pass (p=none dis=none) header.from=yandex.ru | |
Authentication-Results: | sourceware.org; |
spf=pass smtp.mailfrom=anrdaemon AT yandex DOT ru | |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; |
t=1585303502; bh=nhQY/YZIz/ZzGzlF0FtJDro8yocxqPGW7r4raOPlmVs=; | |
h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; | |
b=sWulnELse+PSp6zBJkmitwIaO/r3FFAlnzXdij3Gjh2sJDAKUAq/ag1g2UFx74Sec | |
hAtEV426t+3yLV4dFkFe3MWlxIStDM4JS/pUhmYoYtgwxKzxrB+2hIdJj7MfiBCXKn | |
w4qmtXbd06dqSeYlq4P5gKXe+l51tGRQAV485HYU= | |
Authentication-Results: | mxback2q.mail.yandex.net; dkim=pass header.i=@yandex.ru |
Date: | Fri, 27 Mar 2020 12:51:55 +0300 |
From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
X-Mailer: | The Bat! (v6.8.8) Home |
X-Priority: | 3 (Normal) |
Message-ID: | <459837604.20200327125155@yandex.ru> |
To: | Kacper Michajlow <kasper93 AT gmail DOT com>, cygwin AT cygwin DOT com |
Subject: | Re: ACL: Why SYSTEM doesn't have full access set on newly created |
files? | |
In-Reply-To: | <CABPLASQZ+g7juLdwd_z=GEqdtga2AcS4P6_E8P4SKDas0+KiwQ@mail.gmail.com> |
References: | <CABPLASQZ+g7juLdwd_z=GEqdtga2AcS4P6_E8P4SKDas0+KiwQ AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
X-Spam-Status: | No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, |
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, | |
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, | |
TXREP autolearn=no autolearn_force=no version=3.4.2 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.2 (2018-09-13) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <http://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <http://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <http://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Reply-To: | cygwin AT cygwin DOT com |
Errors-To: | cygwin-bounces AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
Greetings, Kacper Michajlow! > I know that Cygwin tries to emulate UNIX permissions using ACL. But I don't > understand why SYSTEM doesn't have Full Control allowed or even modify. > Shouldn't generally SYSTEM have access to everything? This is because basic POSIX permissiosn are that -stupid +limited. And because in Windows there's no inherent super-user. Even SYSTEM do not have powers to go against set permissions. POSIX permissions in Cygwin are emulated using Windows ACL. Part of the answer can be found in https://cygwin.com/faq.html#faq.using.ssh-pubkey-stops-working The rest is in https://cygwin.com/cygwin-ug-net/ntsec.html > I have cloned git repository of UWP application, and deployment fails in VS > with error: > "DEP0700: Registration of the app failed. [0x80070005] Deployment Register > operation with target volume F: on Package ... from: (AppxManifest.xml) > failed with error 0x80070005." > It is easily fixable by adding Full Control for SYSTEM on all files, but > that wasn't my first idea, so it took some time :) Long story short, it > fails and might be not obvious for the user why, at the first glance. It is easily fixable by mounting directories outside Cygwin tree with "noacl" flag. It is even required to do so, if you expect interoperation between Cygwin and native tools. > Also when accessing ACL from Explorer it throws: > "The permissions on <directory> are incorrectly ordered, which may cause > some entries to be ineffective." > And forces me to reorder them if I want to edit. Don't do that on Cygwin directory tree, you break Cygwin doing this. > That said, I have three questions: > 1. Could Cygwin by default give SYSTEM full control? If not, why? Answered multiple time in the last 20 years. Read the docs. > 2. Could Cygwin put ACL in order, so Windows doesn't complain about it? They are in correct order. Just not canonical order, which Explorer only supports. > 3. Do we need "NULL SID" entry? Yes. > Documentation: https://cygwin.com/docs.html -- With best regards, Andrey Repin Friday, March 27, 2020 12:31:49 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |