←back to thread

Ubuntu on Windows

(blog.dustinkirkland.com)
2049 points bpierre | 1 comments | | HN request time: 0.2s | source
Show context
cabirum ◴[] No.11391054[source]
Are posix permissions supported/emulated? Or are they set to 777 for all Windows drives in /mnt like shared folders in a VM?
replies(4): >>11391267 #>>11393116 #>>11393552 #>>11445615 #
the_mitsuhiko ◴[] No.11391267[source]
Yeah, that's something that really interests me. Likewise I want to know how extended attributes and streams are mapped.
replies(1): >>11391408 #
andoma ◴[] No.11391408[source]
Or unlinking an open file. Something you can't do on traditional Windows kernels IIRC.
replies(1): >>11415366 #
1. JdeBP ◴[] No.11415366[source]
You recall incorrectly. Windows NT kernels have been able to unlink open files right from the get-go, at the start of the 1990s. They had to be, in order to support the POSIX subsystem.

When files are manipulated through the Win32 subsystem they are (normally) opened in "deny delete" mode (i.e. without passing FILE_SHARE_DELETE to CreateFile and thence to NtCreateFile). But that's Win32 programs and language runtime libraries explicitly setting the sharing mode flags that they like, not an inability of the Windows NT kernel that is below the Win32 subsystem, nor even an inability of the Win32 subsystem itself.

* https://msdn.microsoft.com/en-gb/library/windows/desktop/aa3...