delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/07/31/02:54:34

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:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=sJLa66++Vd7a5R/WbqSH5GQ9RyP5SUAxFr8K47DmHBeHPtJ4hhRYF
QqQbNTvTsOaIXo91xBDuWo482TlGxkYg/vteMB5qS5A8+4yiOm8ZlfCEzvpCMPqz
tgDC9IPD1Cz7luxeP24d5dVrJ7j0xQ079gw64reyWWJwyHT2BdEJl8=
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:reply-to:message-id:to:subject
:mime-version:content-type:content-transfer-encoding; s=default;
bh=InD4fYrU5WzeOfjUbasTi7uyHD4=; b=Loeb/dIqPygkk5zR4EvJEUTohysX
sIXy54mIq+hIKfQf8+7fBsec14BB412btVg/LbigIxq3CoNvfwOZHq0z0YM+VG0B
SKJ70R/eI1k3u3YUuH6u1eBQQNXyiTZGozGIrAJ7KiPJtAZc8nz8+lbDA+ZpHLSs
Xxe0hGlYRDaBCk8=
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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-lb0-f180.google.com
X-Received: by 10.112.170.10 with SMTP id ai10mr9048897lbc.93.1406789648740; Wed, 30 Jul 2014 23:54:08 -0700 (PDT)
Date: Thu, 31 Jul 2014 10:54:06 +0400
From: Ilya Basin <basinilya AT gmail DOT com>
Reply-To: Ilya Basin <basinilya AT gmail DOT com>
Message-ID: <518701106.20140731105406@gmail.com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: local admin `chmod 400` still can write
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s6V6sS83007288

Hi.

From cygwin shell I'm able to read and write files even though my
Windows user has no permission for it. I tried `chmod` and to deny
everything for Everyone in the Windows dialog, but it didn't help. How
is it possible?

    $ id
    uid=48466(basin) gid=545(Users) groups=545(Users),0(root),544(Administrators)
    $ touch aaa.txt
    $ chmod 400 aaa.txt
    $ ls -l aaa.txt
    -r--------+ 1 Administrators ???????? 0 Jul 30 19:23 aaa.txt
    $ echo aaa >>aaa.txt
    $ cat aaa.txt
    aaa

My id is not 0, but maybe cygwin still behaves as if I was root.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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