local admin `chmod 400` still can write

Ilya Basin basinilya@gmail.com
Thu Jul 31 06:54:00 GMT 2014


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


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /