1

I've found a number of posts over the past several years on closely related topics. However, I wonder if anyone has any specific advice for the following situation.

I am a casual user of cygwin 2.4.0-1 on Win7 SP1. I have used cygwin for many years on a variety of Win platforms. Today, for the first time on this Win7 machine, I did a cygwin chmod 400 command on a single file, call it /cygdrive/c/some/folder/file. What I then found was that Windows permissions had been altered, throughout C:, and not just in C:\some\folder. Specifically, the Windows Properties dialog shows Read Only status for all folders in C:. I can't write to my primary drive. I have tried to change this using the Windows Properties dialog. However, going back to Properties subsequently shows no change. Rebooting the machine and again trying to update Properties through the dialog does not work. Also, issuing chmod 770 from the cygwin command line did not help.

I have been reading about differences in permissions handling, chmod vs. Win ACLs, permissions with respect to cygwin sshd specifically, and the use of Windows icacls and cacls, e.g. Cygwin chmod 777 command made other users 'access denied' in Windows 7

I also added a file to /cygdrive/c/cygwin64/etc/fstab.d/ per:

Cygwin/vim Windows 7 file access issue

which does not seem to help.

Running icacls from the Windows command line on a couple of specific folders in C: shows the following:


C:>icacls Folder

Folder BUILTIN\Administrators:(I)(F) BUILTIN\Administrators:(I)(OI)(CI)(IO)(F) NT AUTHORITY\SYSTEM:(I)(F) NT AUTHORITY\SYSTEM:(I)(OI)(CI)(IO)(F) BUILTIN\Users:(I)(OI)(CI)(RX) NT AUTHORITY\Authenticated Users:(I)(M) NT AUTHORITY\Authenticated Users:(I)(OI)(CI)(IO)(M)

Successfully processed 1 files; Failed processing 0 files


C:>icacls Users\user

Users\user NT AUTHORITY\SYSTEM:(OI)(CI)(F) BUILTIN\Administrators:(OI)(CI)(F) Machine\user:(OI)(CI)(F) Machine\HomeUsers:(RX)

Successfully processed 1 files; Failed processing 0 files


Anyway, before I start trying icacls commands that I don't fully understand, I was wondering if anyone here might have any specific advice for me.

Many thanks, KCW

Community
  • 1
  • 1
KCW
  • 21
  • 3
  • Hi there. The [so] [tag:cygwin] questions are for developing programs and/or scripts to run in this environment. Questions on the *use* of tools in a Cygwin environment are more appropriate for [su] where you'd have a better chance of getting a good answer. – Anthony Geoghegan Apr 25 '16 at 19:56
  • I had a similar problem and the answer for me was this: https://stackoverflow.com/a/7082542/1088084 – eplictical Jan 31 '18 at 20:17

0 Answers0