4 ms·
I mean if I modify a file in the Linux filesystem as a Windows user, what should the ownership be? Inherited from the directory, like it is on Windows and Linu
by userbinator 10y ago
I mean if I modify a file in the Linux filesystem as a Windows user, what should the ownership be?
Inherited from the directory, like it is on Windows and Linux (by default)? And 777 is a perfectly fine default, since it's a good match for the Windows default attributes and ACLs.
It seems to me that there is no "one size fits all" fix here.
There isn't. But there is a sensible default, which is not "assumes the file is corrupted/damaged".
Consider what happens in Linux if you mount a filesystem like FAT which doesn't even support all the extended metadata. No extended metadata does not mean "I can't do anything with the files", unlike what seems to be happening with WSL here.
- dozzie 10y ago> Inherited from the directory, like it is on Windows and Linux (by default)? Who lied you such horribly that under any unix a newly created file is owned by the owner of the directory? It's not even generally true for group ownership, which has a little more frivolous behaviour! > And 777 is a perfectly fine default 0777 permissions are never fine as a default. It's asking for security vulnerabilities.