This is the mail archive of the
cygwin
mailing list for the Cygwin project.
local admin `chmod 400` still can write
- From: Ilya Basin <basinilya at gmail dot com>
- To: cygwin at cygwin dot com <cygwin at cygwin dot com>
- Date: Thu, 31 Jul 2014 10:54:06 +0400
- Subject: local admin `chmod 400` still can write
- Authentication-results: sourceware.org; auth=none
- Reply-to: Ilya Basin <basinilya at gmail dot com>
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