Cygwin sets the file resolution to 000

I have a folder / cygwin / d / myfolder / And every time I save the files there, from cygwin, if I do ls -la, I see that the permission is set to 000 for the files. This actually causes me quite a lot problems, since I rsync this folder on my server and none of the files are available, How can I get the files to get a reasonable permission?

+52
cygwin
Apr 29 '11 at 4:50
source share
3 answers

Read the answers at this link: http://cygwin.1069669.n5.nabble.com/vim-and-file-permissions-on-Windows-7-td61390.html

The solution also helped me:

Modify / etc / fstab and add this line to the end of the file:

none /cygdrive cygdrive binary,noacl,posix=0,user 0 0 

Then close all Cygwin processes, run the new terminal again and ls -l in your files.

Explanation: By default, Cygwin uses file system access control lists (ACLs) to implement real POSIX permissions. Some Windows native program or process can create or modify ACLs, so Cygwin calculates POSIX permissions as 000. With the noacl option, Cygwin ignores ACL files and only fakes a subset of the permission bits based on the readonly DOS attribute.

+105
Aug 16 '11 at 17:43
source share

Make sure your umask is installed correctly using the umask command. If your umask says 0777, which subtracts from the permissions of the new files and as a result will have 000 permissions. There are probably several other possibilities to consider this.

If your id is not configured correctly in / etc / passwd and / etc / group, this can also lead to unexpected results. Check folder permissions. Also check your Windows permissions with the getfacl command. Perhaps also check the mount command.

+5
Aug 10 2018-11-11T00:
source share

My Win7 computers usually had files ---------- + 1 David None 69120 Jun 17 13:17 mydoc.txt

I tried all the above with no luck It turned out that I still have the old historical mount entries in my .zshrc I deleted them and Bobโ€™s problem with your uncle disappeared!

0
Jun 17 '14 at 15:02
source share



All Articles